[hibernate-dev] org.hibernate.test.annotations.beanvalidation.DDLWithoutCallbackTest

Steve Ebersole steve at hibernate.org
Fri May 21 12:09:22 EDT 2010


In trying to switch over to h2,
org.hibernate.test.annotations.beanvalidation.DDLWithoutCallbackTest is
failing when run against h2 whereas it passes with hsqldb.  

The difference is that when run against hsqldb no check constraint is
defined when the table is created.  But the check constraint is defined
when the table is created on h2.  

The test does say :
cfg.setProperty( "javax.persistence.validation.mode", "ddl" ); 

Isn't the point of this to generate the check constraints in the
database?  Basically isn't this test just defined to pass on hsqldb and
fall on others?

-- 
Steve Ebersole <steve at hibernate.org>
http://hibernate.org




More information about the hibernate-dev mailing list