[jboss-user] [JBoss Seam] - problems with hibernate custom validators
do-not-reply at jboss.com
Wed Dec 19 19:24:05 EST 2007
I'm trying to write a custom validator as described http://www.hibernate.org/hib_docs/validator/reference/en/html/validator-defineconstraints.html#validator-defineconstraints-own
The validator is intended for use with new users registering and he has to check whether the login given by user is still available. Therefore I need to connect with the data layer to execute a finder on users. Is there any simple way of doing that?
private EntityManager em;
doesn't help since validator aint a bean.
Thanks in advance for any help,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4114477#4114477
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4114477
More information about the jboss-user