-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Database data not shown
PostPosted: Thu Nov 05, 2015 6:03 am 
Newbie

Joined: Thu Nov 05, 2015 5:54 am
Posts: 1
Hello,

I have created a database in Oracle 11g and added several tables including a POLITICAL_UNIO table into which I have inserted data (e.g., "EU" and "Non-EU") using SQL.

Unfortunately, when I retrieve the data from the POLITICAL_UNIO in a Java/Spring Data/Hibernate application, nothing is displayed, as if Hibernate couldn't see that the table had been (manually) updated.

How do I tell Hibernate to retrieve the latest data from the database?

Many thanks.

Phi2r


Top
 Profile  
 
 Post subject: Re: Database data not shown
PostPosted: Wed Dec 09, 2015 8:25 am 
Beginner
Beginner

Joined: Thu Nov 26, 2015 11:40 am
Posts: 33
Are you seeing any errors or exceptions? Did you configure any second level cache?

Could you share the code that you are using to retrieve the data?

Just want to confirm that since you are inserting the data manually, did you commit that transaction? I remember myself doing the same mistake. :)


Top
 Profile  
 
 Post subject: Re: Database data not shown
PostPosted: Wed Dec 09, 2015 9:15 am 
Regular
Regular

Joined: Mon Oct 19, 2015 7:49 am
Posts: 61
Location: ChengDu China
Do you remember commit(in spring, it is @Transactional) when insert data?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.