java - What is the difference between @Entity in Hibernate and JPA -
When I am sampling the hibernate standalone program, my mind was confused with the use of @notity annotations Was there.
My question here is, I have a class with JavaEx with @Entity, so it's working fine, but when I change Entity Annotations with the Hibernate API (i.e. Org.hibernate.MappingException: unknown entity: com.jetti.test.Employee
Give some more explanations It is highly appreciated.
@ javax.preistence.Entity is mandatory, @ org.hibernate.annotations.Entity A There is no replacement.
Then, the code of the hibernate completes @
just javax.preistence.Entity
, and Gives some better tuning options. / P>
Comments
Post a Comment