[hibernate-dev] [Bean Validation] XML Mapping schema

Hardy Ferentschik hibernate at ferentschik.de
Fri Jan 30 06:19:43 EST 2009


On Fri, 30 Jan 2009 06:10:29 +0100, Emmanuel Bernard  
<emmanuel at hibernate.org> wrote:


>   2 should we have <fields/> and <getters/> or should <field/> <getter/>  
> be directly under <bean/> ?
>   3 should we have <groups/> or should <group/> be under <constraint/>  
> directly?

I would drop fields, getters and groups. It makes the xml jsut more  
verbose. Unless of course there is a
real benefit for having them. If there is I would love to hear in which  
cases it would be useful to have them.


>   4 should we allow <element name"size">30</element>

I think we should allow it. In the case where we have single values it is  
just nicer to read.

--Hardy





More information about the hibernate-dev mailing list