entity « Glassfish « JPA Q&A

1. How can we use JPA2 (Hibernate) entities as DTO's between two webapps?    stackoverflow.com

Hi guys We're running on Glassfish 3.0.1 and using Hibernate 3.5.3. Our project setup looks like this: frontend.war common.jar backend.war We would like to put our jpa2 annotated entities in common.jar in such a way that the ...

2. How to obtain Class from JPA entity name?    java.net

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.

3. Reflection for JPA entity metadata    java.net

Is there a way to reflectively examine metadata of JPA entities at runtime? For instance, say I want to get the value of the mappedBy element of a ManyToMany association on an entity. I can ses how to do this with reflection if the entity is annotated. But if the entity is described in an XML mapping file and not annotated, ...

4. [JPA] replication of entities in Java SE    java.net

This seems to be the right solution. You can keep the PKs if you don't mark DB2 entities for generated values. As you need to have 2 PUs defined anyway (unless your persistence provider supports having 2 PUs with the same name but different set of DB properties), you should be able to add an orm.xml to one of them and ...

5. JPA: Entity Upgrades    java.net

6. Style question about returning JPA entities from EJB    java.net

Back in the EJB 2.x days with CMP, the CPM entities were not returned by session beans. The entity would be converted into POJO value objects before being returned. I used to put the value object POJOs in a common jar file that the EJB project and EJB client project would depend on.

7. JPA Entity that has no primary key    java.net

I have a table in that doesn't contain any primary key. There are no unique constraints on the table. Constraints-wise, it just contains few columns that has 'not null' requirements. This table is controlled by other application group and as such I can't modify the table definitions. I found in some groups that JPA doesn't support entities that has no primary ...