Hi, Hardy, >but I could not find anything regarding the default access type using orm.xml only
the same for me, I also wanted to find orm.dtd and look for default values like I found for hibernate-mapping here: http://www.koders.com/xml/fidD6EE54ED93539E461E947B87F881E8A50DF4DEC5.aspx?s=mdef%3Ahibernate I decided that here could be bug because I thought that the default value specified somewhere, and I noticed that jpt (Dali) plugins for Eclipse show that default value is "field". Of course they are not for Hibernate implementation, but I expected the same behaviour. Thanks for the help, Hardy. 24/06/2010 11:56, Hardy Ferentschik wrote: > 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 > <dgeras...@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@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/hibernate-dev > _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev