Hibernate version:
Hibernate 3.1beta3
Hibernate Annotations 3.1beta5
Hibernate Entitymanager 3.1beta3
Name and version of the database you are using:
embedded hsqldb
I am testing the Entitymanager in a j2se environment.
My class works with @Entity(access=AccessType.PROPERTY)
and @Id(generate = GeneratorType.AUTO).
However, if I switch to @Entity(access = AccessType.FIELD) annotation,
the ID Generator isn't called and I get a
org.hibernate.PropertyValueException: not-null property references a null or transient value:
Exception.
The hibernate create table sql statement etc. are the same as the PROPERTY annotation.
Does anybody have a similiar problem ?"
|