[hibernate-dev] Default entity's data access

Andersen Max max.andersen at redhat.com
Fri Jul 2 01:56:37 EDT 2010

On Jul 1, 2010, at 22:48, Emmanuel Bernard wrote:

> On 1 juil. 2010, at 18:28, Andersen Max wrote:
>>> Give me the spec paragraph that says that field has priority over getter. 
>> Where is the spec that says getter has priority over field ? :)
> The spec does not, that's the point :)
>> In a separate discussion with the Dali (eclipse jpa tooling) team it seems like
>> for orm.xml it is not at all specified and thus left up to interpretation of the vendor
>> and it seems the ref implementation (eclipselink) takes the opposite approach to 
>> this than Hibernate and we get stuck in the middle.
> +1 some kind of "dialect". I do believe getter is a better choice for Hibernate and in general for various reasons, but I am also sympathetic to the other side.

it just means orm.xml even if using only spec compliant elements are not actually portable.
(I know there are other scenarios where portability breaks, but handling defaults at the basic metadata specification
sounds almost too easy to miss...but I guess we don't live in a perfect world ;)


More information about the hibernate-dev mailing list