openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: Example of join in Criteria API
Date Sat, 23 Apr 2011 03:08:37 GMT
> Are these classes generated runtime or i have to generate first and then
use? 

They are generated at compile time when you compile *only* your @Entity
classes. 
See [1] for compiler instructions.

Then these meta-classes can be used to define typesafe queries. 
See some examples in [2]

The explanation about these meta-classes can be found in this article[3]

[1] http://openjpa.apache.org/builds/latest/docs/manual/manual.html#d0e11212
[2]
https://fisheye6.atlassian.com/browse/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/criteria/TestTypesafeCriteria.java?hb=true
[3] http://www.ibm.com/developerworks/java/library/j-typesafejpa/#N102F2

-----
Pinaki 
--
View this message in context: http://openjpa.208410.n2.nabble.com/Example-of-join-in-Criteria-API-tp6291890p6298772.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.

Mime
View raw message