*
The moose likes Object Relational Mapping and the fly likes JPA - vendor specific implementation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "JPA - vendor specific implementation" Watch "JPA - vendor specific implementation" New topic
Author

JPA - vendor specific implementation

Arun Rao
Ranch Hand

Joined: Jan 23, 2004
Posts: 41
Hi Authors,

How does the book cover vendor specific implementations of JPA? Like Weblogic, Jboss etc? Does it provide sample projects showing the implementation?
Arun Rao
Ranch Hand

Joined: Jan 23, 2004
Posts: 41
One of the most confusing or rather a tedious implementations of JPA is the object relational mapping. In my experience, when the database is super normalized it becomes hard to annotate them. For eg, consider a two tables order and activity and both have one to many relationships with properties. Property table itself has a composite foreign key for identified by either order entity or activity entity and has the primary key of the corresponding table to annotate if it belongs to either order or activity. We implemented OpenJpa and ended up creating two entities names OrderProperty and ActivityProperty both pointing to the same table. But i'm not sure if it was the right approach. Does the book cover or give tips to handle such scenarios?
Mike Keith
author
Ranch Hand

Joined: Jul 14, 2005
Posts: 304
Hi Arun,

The book tries to explain the JPA specification and not dive into the specifics of the particular implementations. You should see the specific vendors docs for that.

We do give hints on how to map some scenarios and hints for when to use a given type of inheritance, as well as describe how to use the new composite primary key mechanisms. However, there is only so much time and space and the book simply cannot cover even a fraction of every possible application use case. If you are happy with the solution that you are using and it is meeting your needs then who am I to tell you that there is a better way?


-Mike
Pro JPA 2: Mastering the Java Persistence API
Arun Rao
Ranch Hand

Joined: Jan 23, 2004
Posts: 41
Thanks guys. I have read your previous version of the book and I liked what i read. Can't wait to go thru this new one.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JPA - vendor specific implementation
 
Similar Threads
Toplink witth JPA vs Toplink API
Hibernate annotations and JPA
JPA - Hibernate Integration
Can EJB3 generate DDL?
JPA v/s Hibernate