-->
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: hibernate validators for password which must be alphanumeric
PostPosted: Mon Sep 01, 2008 4:04 am 
Newbie

Joined: Mon Sep 01, 2008 3:57 am
Posts: 1
hibernate validators for password which must be alphanumeric,
must contain one capital letter...


Hi all, I'm writing an entity bean User which contain 'password'
attribute, it must be alphanumeric and must have one capital
letter, I'm using seams framework, how to validate the password
according to my requirements using hibernate!


Are there any specific annotations for this!


Thanku!


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 01, 2008 4:15 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
There is a validator called Pattern, you can define your own regular expression there.
Otherwise, it's quite simple to register your own brand new validator, there are some instructions in the Validator reference documentation.

_________________
Sanne
http://in.relation.to/


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.