[hibernate-dev] is it valid that having an attribute in orm.xml which doesn't exist in the pojo?

Steve Ebersole steve at hibernate.org
Mon Jul 15 12:33:16 EDT 2013


My gut reaction is that this is probably ok either way according to spec.
Though I think it should certainly be an error if the xml is "complete" .
Is there a hardship in supporting the existing "ignore it" behavior?
On Jul 15, 2013 1:39 AM, "Strong Liu" <stliu at hibernate.org> wrote:

>
> hibernate-core/src/test/resources/org/hibernate/test/annotations/xml/ejb3/orm.xml
>
> this orm.xml has :
>
> <basic name="unknownProperty"/>
>
> but this attribute doesn't exist in the pojo, what should we do in this
> case?
>
> BTW the old metamodel / configuration seems just ignore it
> -------------------------
> Best Regards,
>
> Strong Liu <stliu at hibernate.org>
> http://about.me/stliu/bio
>
>
>
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>


More information about the hibernate-dev mailing list