Loading selected Hibernate entities with JPA & Spring
Is there a way to loa开发者_StackOverflow社区d only selected entities with Hibernate?
I would like to only load a selected handful for integration testing.
I create an AnnotationConfiguration programatically for this kind of tests and use methods such as addAnnotatedClass(Class) to "enlist" entities.
I ended up using a custom persistence.xml and gave it to the EntityManagerFactory in the spring config.
加载中,请稍侯......
精彩评论