-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to update a column using hibernate
PostPosted: Tue Jan 24, 2006 5:48 am 
Newbie

Joined: Tue Jan 24, 2006 5:45 am
Posts: 3
hi iam using oracle data base..
i want to update a column....
do in need to use session.saveorupdate("..")
or session.createquery("...")


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 02, 2006 2:52 pm 
Beginner
Beginner

Joined: Thu Sep 15, 2005 4:16 pm
Posts: 29
To update data you would load the mapped data class, change the data in the class, then save the result.

If you just want to update columns directly, write JDBC code. If you want object-relational mapping, use Hibernate.

Note that if you update using JDBC, the results may be masked by the caches in hibernate.


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