-->
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.  [ 3 posts ] 
Author Message
 Post subject: Refer to values across multiple nested objects
PostPosted: Tue Sep 11, 2007 5:36 am 
Newbie

Joined: Mon Nov 29, 2004 8:15 am
Posts: 8
Hi there,

Does Hibernate validator supports creating rules that refer to multiple nested objects in an object hierarchy?

As far as I understand this could be possible creating custom annotations, but I would really want to know if you could directly use some code in the annotations to create this kind of expression as for example (imaginary code):

Code:
@NotNull
private double clientRate;

@Assert(expr="_field.value == this.clientRate")
private double marketRate;


Cheers,
Martin


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 11, 2007 4:57 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
no there is no out of the box solution. The idea of having an Expression Language annotation is in the air though

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 12, 2007 5:38 am 
Newbie

Joined: Mon Nov 29, 2004 8:15 am
Posts: 8
emmanuel wrote:
no there is no out of the box solution. The idea of having an Expression Language annotation is in the air though


Thanks Emmanuel.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.