JPA - convert object to sql query?
I am writing a JPA connector for an old system. The problem is that the design of the database in the system is ... well ... terrible.
I need to implement an object that maps to three tables. I can do it using named sql queries, but from the looks of it I have to use this object in relation to OneToMany (this object is on many sides). So how do I tell JPA to use a specific named query with a specific parameter?
And subquery: does any1 have good online JPA documentation? I can't find anything decent: - /
0
Franz
source
to share
3 answers
Take a look at @SecondaryTable (s). See Pro EJB 3 Java Peristance API , page 237 for some examples of this .
0
source to share