Hi, OpenJPA can support the usage of generics you have reported. However, it needs a bit of help from the user. You need to tell OpenJPA that target entity (whose parameterized type is not sufficient for OpenJPA to guess) is indeed a persistent entity.
An example of similar generic type based domain model exists in OpenJPA source repository [1]. If you do not have access to source code then you can browse it in FishEye [2] [1] see under ./openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/graph/ [2] http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/graph/ Regards -- ----- Pinaki -- View this message in context: http://openjpa.208410.n2.nabble.com/very-simple-generics-example-but-how-to-make-it-work-with-openjpa-tp5963498p5980277.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
