hiberate 4.3 - entity class instances not returned in list
问题 I am using Hibernate 4.3.8 without Spring. I am using Hibernate's session API. I have one entity class Category which I have annotated properly with @Entity , @Table , @Id , @Column and so on. I don't use .hbm.xml descriptor files, I just want to use the annotations in my domain/entity java source/class files. 1) OK, I create my hibernate SessionFactory in this way: Configuration configuration = new Configuration().configure(); // configuration.addClass(Category.class);