This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes yet another Spring-JPA-Hibernate config question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "yet another Spring-JPA-Hibernate config question" Watch "yet another Spring-JPA-Hibernate config question" New topic
Author

yet another Spring-JPA-Hibernate config question

Stuart Rogers
Ranch Hand

Joined: Oct 02, 2008
Posts: 133
Greetings all,

I have decided to upgrade a functioning standalone desktop Java/Spring3x/Hibernate3x/Maven/MySQL5x/Eclipse app from using Hibernate for my ORM to JPA2.

Here's what I've got so far

src/main/resources/ApplicationContext.xml


/src/main/resources/persistenceB.xml


ActivityCodeDAOImpl


and a simple test program


The test program belches on this line with the message


Now I know my persistence file isn't in the standard place but it =seems= to be getting found at least - changing the value of

to some other directory where the file is not will cause a FileNotFound error. So maybe there's some flaw in pu2 that causes IAE error?

I've structured my configuration this way for I plan to add support for multiple databases via multiple EntityFactories and DataSources.

So can anyone spot what I've done wrong/not done right? And are there any improvements to be made? What's the 'best-practices' zen of achieving multiple database transaction management with JPA2/Hibernate ?

TIA,

Still-learning Steve
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: yet another Spring-JPA-Hibernate config question
 
Similar Threads
Spring AOP not working
java.lang.NoClassDefFoundError: java/util/concurrent/ConcurrentSkipListMap
Spring AOP aspect not working.
AOP not getting invoked on my Target Bean Method --> Singer.perform() method
Spring,JUnit, Hibernate and persistence db but not insert