-->
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: Function generated field
PostPosted: Tue Oct 05, 2004 12:22 pm 
Newbie

Joined: Tue Sep 14, 2004 10:57 am
Posts: 12
Hi folks,

I have a function within SQL Server that is executed by a trigger on an insert and sets a field with a calculated value. This field is not a PK nor FK. When Hibernate is done saving my POJO, the field is not returned with the calculated value. I was wondering why that is? If I do session.refresh(pojo) then, ofcourse, it works. But the overhead is not too good.

Can anybody help?


Thanks & regards.

Jay


Top
 Profile  
 
 Post subject:
PostPosted: Wed Oct 06, 2004 7:52 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Hibernate can not do better that an INSERT and then a SELECT.

_________________
Emmanuel


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.