Hibernate version:
3.2.0.CR1 for core, annotations and manager
Mapping documents:
Code:
<persistence>
<persistence-unit name="nameofdatasource" ...>
<provider>org.hibernate.ejb.HibernatePersistence</provider>
...
<class>mypackage.Myclass</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
...
</properties>
</persistence-unit>
</persistence>
I have problems controlling which classes are detected by the entity manager factory. I use
Code:
Persistence.createEntityManagerFactory("nameofdatasource")
to create the factory inside a web application that runs under tomcat 5.5.x
When debugging I find that a method
Code:
org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(...)
does all the work but it does not consider the value of e.g.
Code:
excludeUnlistedClasses()
However, there is a method
Code:
org.hibernate.ejb.Ejb3Configuration.createContainerEntityManagerFactory(...)
which does it but I find no way of using this method in accordance with the common samples and skeletons which recommend bootstrapping via
Code:
Persistence.createEntityManagerFactory()
regards,
Andreas