Hi, JPA 2.0 Expert Group is discussing the possibility of integrating Validation framework.
Miłosz Tylenda wrote: > > Håkon, > > Another option is to have a look at some validation framework. There are a > couple of them, here is a list: > > http://java-source.net/open-source/validation > > Cheers, > Milosz > >> Hi, >> >> I don't think that capability currently exists. I'm assuming you'd want >> OpenJPA to validate the attribute before the entity is flushed and then >> throw a UserException? >> >> It's an interesting enhancement, but at the moment I think you'll have to >> do >> the validation manually (say in the set method for the attribute). >> >> -mike >> >> On Fri, Jan 23, 2009 at 1:42 AM, Håkon Sagehaug >> wrote: >> >> > Hi >> > >> > Is it possible in openjpa to annotate a attribute to conform to a >> patters >> > say en email pattern? >> > >> > cheers, Håkon >> > >> > -- >> > Håkon Sagehaug, Software Developer >> > Parallab, Bergen Center for Computational Science (BCCS) >> > UNIFOB AS (University of Bergen Research Company) >> > >> > > -- View this message in context: http://n2.nabble.com/Annotate-an-attribute-to-follow-a-pattern-tp2202089p2219864.html Sent from the OpenJPA Users mailing list archive at Nabble.com.
