This week's book giveaway is in the Flex forum.
We're giving away four copies of Flex 4 in Action and have Tariq Ahmed, Dan Orlando, John C. Bland II & Joel Hooks on-line!
See this thread for details.
[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Win a copy of Flex 4 in Action this week in the Flex forum!
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Object Relational Mapping
 
RSS feed
 
New topic
Author

How to update a column to null by using hibernate update statement.

somu somu
Greenhorn

Joined: Jun 29, 2009
Messages: 1

Hi,

I am very new to Hibernate,

I want to update a column in DB to null using hibernate update query, instead of load all the object and saving it again.

My query is:-
update Patientadmission pa set pa.to_time=? where pa.admissionid=?, by sending null value directly to to_time column, it is giving error.

can you please help me, Faster respose can be appreciated.

Thanks & Regards
somu.
Amit Ghorpade
Bartender

Joined: Jun 06, 2007
Messages: 1967

"somu somu " welcome to Javaranch
please check your private messages for an important administrative matter. You can check them by clicking the My Private Messages link above.

Tell Difficulties that I am DIFFICULT
Asking Good Questions
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Java » Object Relational Mapping
 
RSS feed
 
New topic
IntelliJ open source