org.hibernate.annotations.Entity not being picked up by Hibernate 3.6
- by user1317764
I am using hibernate 3.6.7
I am using annotated classes. My classes were annotated with org.hibernate.annotations.Entity.
Added the classes to configuration using configuration.addAnnotatedClass() method.
Hibernate does not seem to pick it up.
Stuff works fine if I use the standard jpa Entity annotation.
What am I missing? I know that the classes have been deprecated in the Hibernate 4.x releases with the advent of newer annotations to configure stuff like dynamic-insert and dynamic-updates.
I am not using any XML configuration file. I am setting up configuration with a properties file and using java apis.