On Mon, Jun 13, 2011 at 2:53 PM, chintan4181 [via OpenJPA] < [email protected]> wrote:
> how do i check whether staticMetamodel created or not? > I'm not that familiar with how (or if) OpenJPA does it. Both EclipseLink and Hibernate include options for automatically generating it. To see whether the static metamodel exists, check your build environment's target area and look for classes that start with "_" and are named after your entities. Here is how Hibernate does it: http://www.hibernate.org/subprojects/jpamodelgen.html Note that this is just a regular old annotation processor and has nothing to do with Hibernate, so if OpenJPA does not offer the ability to statically generate the metamodel you could do it with that. Here is how EclipseLink does it (I think they just do it automatically): http://wiki.eclipse.org/UserGuide/JPA/Using_the_Canonical_Model_Generator_%28ELUG%29 Best, Laird -- View this message in context: http://openjpa.208410.n2.nabble.com/How-to-find-entity-belong-which-EntityManger-tp6470903p6471457.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
