Return-Path: Delivered-To: apmail-openjpa-users-archive@locus.apache.org Received: (qmail 42991 invoked from network); 26 Jan 2009 19:00:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jan 2009 19:00:16 -0000 Received: (qmail 23037 invoked by uid 500); 26 Jan 2009 19:00:15 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 23019 invoked by uid 500); 26 Jan 2009 19:00:15 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 23008 invoked by uid 99); 26 Jan 2009 19:00:15 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2009 11:00:15 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_HELO_PASS,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists+1214986160035-208411@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 26 Jan 2009 19:00:07 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1LRWgU-0002D8-Va for users@openjpa.apache.org; Mon, 26 Jan 2009 10:59:46 -0800 Message-ID: <1232996386970-2219864.post@n2.nabble.com> Date: Mon, 26 Jan 2009 10:59:46 -0800 (PST) From: Pinaki Poddar To: users@openjpa.apache.org Subject: Re: Annotate an attribute to follow a pattern In-Reply-To: <60dc6b9f.25fe3fbd.497ade61.7dc78@o2.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: ppoddar@apache.org References: <72c1350f0901230728t6f99e460r58d94664aa9ad0fb@mail.gmail.com> <60dc6b9f.25fe3fbd.497ade61.7dc78@o2.pl> X-Virus-Checked: Checked by ClamAV on apache.org Hi, JPA 2.0 Expert Group is discussing the possibility of integrating Validation framework. Mi=C5=82osz Tylenda wrote: >=20 > H=C3=A5kon, >=20 > Another option is to have a look at some validation framework. There are = a > couple of them, here is a list: >=20 > http://java-source.net/open-source/validation >=20 > Cheers, > Milosz >=20 >> Hi, >>=20 >> 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? >>=20 >> It's an interesting enhancement, but at the moment I think you'll have t= o >> do >> the validation manually (say in the set method for the attribute). >>=20 >> -mike >>=20 >> On Fri, Jan 23, 2009 at 1:42 AM, H=C3=A5kon Sagehaug >> wrote: >>=20 >> > Hi >> > >> > Is it possible in openjpa to annotate a attribute to conform to a >> patters >> > say en email pattern? >> > >> > cheers, H=C3=A5kon >> > >> > -- >> > H=C3=A5kon Sagehaug, Software Developer >> > Parallab, Bergen Center for Computational Science (BCCS) >> > UNIFOB AS (University of Bergen Research Company) >> > >>=20 >=20 >=20 --=20 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.