-->
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: No field annotations and security manager
PostPosted: Fri Mar 09, 2012 4:52 am 
Newbie

Joined: Wed May 20, 2009 9:49 am
Posts: 11
I understand that if we place Hibernate Validation annotations on the private fields, this won't work on the restrictive SecurityManager. The question is if I don't put them and only use annotations on public getters, does it still look at the private fields? I'd like my app be as much compliant as possible and don't want HV to access private members of classes.
PS: validator has several methods and we can, let's say, choose to work only with fields, but I don't access HV directly, it's done by Hibernate & Spring under the hood.


Top
 Profile  
 
 Post subject: Re: No field annotations and security manager
PostPosted: Tue Mar 13, 2012 9:20 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
if your getter and setter don't do anything but returning and setting the field value respectively, then yes it will work fine to annotate your getter.

_________________
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.