-->
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: dynamic-update and where clause
PostPosted: Mon Oct 15, 2012 12:22 pm 
Newbie

Joined: Mon Oct 15, 2012 12:03 pm
Posts: 1
This is my first thread on hibernate's forum so.. Hi all!
I'm using a persisted dto with dynamic-update=true ...in this way the dml sql generated from hibernate has only the modified attribute instead of all attributes in update sql query.
That's really clear, is there a way to add additional conditions to the basic equality identity condition? (I mean, in the generated sql query)

Ex:

udpate MyDTO
set name:='Italo'
where id:=4

so, I want:

udpate MyDTO
set name:='Italo'
where id:=4 and surname:='Calvino'


Top
 Profile  
 
 Post subject: Re: dynamic-update and where clause
PostPosted: Wed Oct 17, 2012 6:42 am 
Newbie

Joined: Wed Oct 17, 2012 6:34 am
Posts: 1
Location: New York
I really like your blog and i really appreciate the excellent quality content you are posting here for free for your online readers.


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.