users@glassfish.java.net

Reflection for JPA entity metadata

From: <glassfish_at_javadesktop.org>
Date: Sun, 11 Mar 2007 13:05:45 PST

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, then is there also a way to do this?
[Message sent by forum member 'jotobjects' (jotobjects)]

http://forums.java.net/jive/thread.jspa?messageID=207330