-->
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.  [ 1 post ] 
Author Message
 Post subject: More information about the @Where annotation
PostPosted: Wed May 15, 2013 9:46 am 
Newbie

Joined: Tue May 14, 2013 9:36 am
Posts: 3
The documentation on the capabilities of the @Where annotation that I've located are vague.

Is there some better documentation on this annotation or (even better) some good examples of it's usage and capability? For example, does it support variable injection using parameters or POJO properties? If so, how?

Specifically, I'd like to do something like this:

Code:
@Where(clause="address_id = (select max(address_id) from address_table where person_id= <injected person_id of the person POJO>)") 


Is this possible?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.