-->
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: Validation annotation on private field not used
PostPosted: Sat Apr 01, 2006 5:55 pm 
Newbie

Joined: Sat Apr 01, 2006 5:45 pm
Posts: 2
Hibernate versions: 3.2.0RC1 and 3.1.3
Annotations version: 3.1beta9 and 3.1beta8
Entity Manager version: 3.1beta7 and 3.1beta6
Name and version of the database you are using:Postgres 8.1

Hi,

When I put a validation annotation on a private field of a data class, it does not get validated by hibernate by using application-level validation, and also not the event-based validation. It does however get picked up bij hdb2ddl (schema validation according to (http://www.hibernate.org/hib_docs/annot ... dator.html) 3.2.)

Can someone tell if this might be a bug or that I'm maybe expecting the wrong thing? BTW, the EJB3 annotations do work on the private fields.

Oh and of course it works on the public getter


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 02, 2006 6:35 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
I do have unit tests for that. Double check, there should be something else.

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