This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Other Application Frameworks and the fly likes Spring Hibernate Persistence problem !!!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Spring Hibernate Persistence problem !!!!" Watch "Spring Hibernate Persistence problem !!!!" New topic
Author

Spring Hibernate Persistence problem !!!!

Nise Duram
Greenhorn

Joined: Jun 15, 2008
Posts: 3
Hi,
Just to summarize. I am using Myeclipse IDE, and am building the sample application using both spring and hibernate. See this link which has the sample app.

http://www.myeclipseide.com/documentation/quickstarts/hibernateandspring/

I do everything step by step as is give here. However when i store something to the database ... it does not get stored and it seems that there is some kind of a transaction rollback. I can say this because if i store something beforehand, I get a primary key violation if i try to store throught spring hibernate. So i know my sql statement is atleast hitting the database.

Does anyone know or can send me a small snippet of code showing how can i commit a transaction with spring explicitly.

Many thanks for any help or input. This is really driving me insane.

Nise
Sachin Dere
Ranch Hand

Joined: Jan 14, 2003
Posts: 80
use transaction.commit() after your insert query
 
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Spring Hibernate Persistence problem !!!!
 
It's not a secret anymore!