Hi Dmitry,
for JPA 2 the official reference is the final version of the JSR 317 (see
also
http://java.sun.com/xml/ns/persistence/orm_2_0.xsd)
The spec dedicates a whole paragraph about the default access type using
using annotations, but I could
not find anything regarding the default access type using orm.xml only. It
seems it is up to
the implementor to decide on the the default. Why would you consider
'property' access to be the wrong default?
In any case, you can enforce a specific access type in xml using one of
the many ways to explicitly set
the access type, for example <persistence-unit-defaults>
--Hardy
On Thu, 24 Jun 2010 09:57:46 +0200, Dmitry Geraskov <dgeraskov(a)exadel.com>
wrote:
Hi, guys,
who could tell me what a default data access should be used in case of
entity mapping through orm.xml (field/property)?
Is it written anywhere?
I ask because there is seems a bug in hibernate - it use "property"
access by default.
Dmitry Geraskov.
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev