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: where dose the update command come from?
PostPosted: Wed Aug 18, 2004 10:30 pm 
Beginner
Beginner

Joined: Thu Jul 22, 2004 4:32 am
Posts: 31
when I user hibernate find by Id, I get these two sql command:

Code:
session.load(clazz, id);
session.flush();


Hibernate: select titlepo0_.titleId as titleId0_, titlepo0_.modifyDate as modifyDate0_, titlepo0_.titleName as titleName0_, titlepo0_.description as descript4_0_, titlepo0_.comment as comment0_, titlepo0_.creator as creator0_, titlepo0_.createDate as createDate0_, titlepo0_.modifier as modifier0_ from title titlepo0_ where titlepo0_.titleId=?
Hibernate: update title set creator=?, modifier=? where titleId=?
where dose the second command come from?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 18, 2004 11:05 pm 
Beginner
Beginner

Joined: Thu Jul 22, 2004 4:32 am
Posts: 31
I have solved this problem, It comes from sql server 'char' data type.

http://forum.hibernate.org/viewtopic.php?t=933671

thanks all the same!


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.