entity « JBoss « JPA Q&A





1. How to force JBoss 4.2.3 to clear hibernate's session cache for every request?    stackoverflow.com

It seems to me that JBoss reuses entity managers and the underlying hibernate sessions for multiple requests. I have run a test which proves that in some cases the state of ...

2. Where do I look for the database script generated from JPA Entities?    stackoverflow.com

I am having a few errors like the following when I deploy my JPA entities into JBoss.


18:34:53,462 ERROR [SchemaExport] You have an error in your SQL syntax; check the manual ...

3. entities scanning issue in jboss as 7.0.2.Final    forum.hibernate.org

I'm migrating an EE application from AS6 to AS7.0.2.Final (with HIB 4.0.0.CR2). My app is bundled as an EAR. The persistence xml references entities with the jar-file xml element but it seems the jar files are not scanned at all! Do I need to change something to make it work with Hib 4? Thanks in advance (The exact same file was ...

4. Update many entities under JBoss    forum.hibernate.org

Hello, I'm using Hibernate 2.14 and JBoss 3.24 and I'm trying to update a large number of objects (160000). I know that you shouldn't use Hibernate for something like this, but I would like test Hibernate a little bit. The problem is, that I'm always running out of memory. The code (in a stateless session bean) looks like this: Code: public ...

5. JBoss hibernate : unknown entity class    forum.hibernate.org

I have a with two hibernate applications under JBoss that runs perfectly when deployed separately. Problem comes when both are deployed together, where the first on a query.list() execution throws: "unknown entity class" as a net.sf.hibernate.MappingException. Clearly the entity class is being shown in the log while deployed and also SessionFactory.getAllClassMetadata() does list it as well. Both session factories (hibernate-service.xml) have ...