-->
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.  [ 1 post ] 
Author Message
 Post subject: Running a separate db query to perform validation
PostPosted: Sun Jun 17, 2007 9:10 am 
Newbie

Joined: Wed May 31, 2006 7:47 am
Posts: 6
I need to run a db query as part of the validation. How can I arrange for a session object to be made available as part of the validation check? It looks like I could use @AssertTrue on a property but that property would need to get a session somehow that is outside the current transaction.

Thoughts?

I have a db that does not implement uniqueness on a column called "name" (but has a integer PK) and I need to check that the newly created pojo's name is unique.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.