Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Hibernate insert
PostPosted: Sat May 28, 2011 3:28 pm 
Newbie

Joined: Wed Aug 27, 2008 8:37 am
Posts: 1
Hi!

I have very strange problem. Sometimes I can't see inserted data in mysql (replicated).
I can see hibernate SQL insert into ... - log message
My question is when hibernate log this message, before or after actual insert.
I am use hibernate from spring hibernatetemplate and application server is weblogic.
I am use saveOrUpdate method to do actual insert.
I can't see any problem in local pc but only production environment.


Top
 Profile  
 
 Post subject: Re: Hibernate insert
PostPosted: Mon May 30, 2011 8:29 am 
Newbie

Joined: Mon May 30, 2011 7:00 am
Posts: 3
Make shure you commit transaction.
Something like:
Code:
session.beginTransaction();
session.saveOrUpdate(new FaDocsEntity());
session.getTransaction().commit();


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.