jsp « Entity « JPA Q&A





1. Returning "non-Decorated" Entities in JPA    coderanch.com

I have a problem which I'm pretty sure bumps up against some fundamental issues of JPA and managing the persistence of objects in general (and my lack of understanding of it) ... So, I have a stateless session bean which simply uses an EntityManager to find an object by its primary key. This entity object has a one-to-many association which I ...

2. unable to persist an entity using JPA    coderanch.com

Hi Reza, I tried commenting that line also but i was getting the same error. So is that means we cannot insert any entity into the database which has the column for which the id is generated by the database. I have the ID generated sequence is AUTO in my entity class. How can we solve this issue?? Thanks, Suresh B ...

3. best practice for jpa, using @Entity as a VO?    coderanch.com

Hi Guys, I have a web server running tomcat that makes calls to another app server that has an ejb layer. One of the web forms has 20 fields which map directly to one table in the backend. The @Entity bean in the persistence layer also maps directly to said table. In the web layer, can I use the @Entity bean ...