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) > > >
