[hibernate-dev] HV-274 - Write a programmatic mapping API for constraint declarations

2010-05-21 Thread Hardy Ferentschik
On Thu, 20 May 2010 23:49:00 +0200, Gunnar Morling wrote: > personally I feel that the proposed definition classes bring quite a > large (conceptual and technical) overhead to the table. Writing them > from hand > isn't really cool, building an AP for this OTOH seems a lot of work for >

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

2010-05-21 Thread Steve Ebersole
Ok, I found part of the problem. Validator is creating column-level check constraints (Column.setCheckConstraint). However those are ignored if the dialect reports that it does not "supportsColumnCheck". HSQLDialect happens to be one such dialect. Seems to me though that TheRightThing to do ther

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

2010-05-21 Thread Steve Ebersole
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