org.hibernate.annotations.Entity not being picked up by Hibernate 3.6
        Posted  
        
            by 
                user1317764
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by user1317764
        
        
        
        Published on 2012-04-09T17:25:54Z
        Indexed on 
            2012/04/09
            17:28 UTC
        
        
        Read the original article
        Hit count: 364
        
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.
© Stack Overflow or respective owner