This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Getting MEAN with Mongo, Express, Angular, and Node and have Simon Holmes on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Is it possible to specify which JPA implementation to use? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Is it possible to specify which JPA implementation to use?" Watch "Is it possible to specify which JPA implementation to use?" New topic
Author

Is it possible to specify which JPA implementation to use?

Luke Murphy
Ranch Hand

Joined: May 12, 2010
Posts: 300
Suppose you have EclipseLink and Hibernate both on your classpath?

In some cases you want to use EclipseLink and in other Hibernate. Is this possible?
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42955
    
  73
Sure. You can specify that for each <persistence-unit> separately.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Is it possible to specify which JPA implementation to use?