Welcome to the most active Linux Forum on the web.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 02-28-2014, 08:57 AM   #1
Senior Member
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
hibernate - transactions show different data


I'm wondering what's the right way to handle transactions when showing data (just select) and modifying data (create/update/delete). When do I have to use Session.getTransaction()? When do I have to use Session.beginTransaction()? When do I have to commit?

On a main page, I sometimes get a list of data, but if I try refreshing over and over again from the main page I get different sets of data (and some of them differ from what's on the DB so it lookl like I left seom transaction hanging or something).

How's the correct way to work this stuff?

Thanks in advance


hibernate, transaction

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Bash commands to show IP/DNS data? deeek Programming 5 01-31-2013 01:10 PM
[SOLVED] Want to show fetched data in page. PradeepRahul Programming 3 01-03-2012 02:28 AM
Rom Does not show data on cd Adriann Mandriva 1 02-25-2010 07:46 AM
Oracle toald can't show me the data wanghao Linux - Server 1 05-27-2008 09:01 AM
cli hibernate works but gnome panel hibernate fails BCarey Linux - Desktop 1 06-08-2007 10:21 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:12 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration