Return-Path: Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: (qmail 39466 invoked from network); 16 Mar 2011 18:53:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Mar 2011 18:53:51 -0000 Received: (qmail 53133 invoked by uid 500); 16 Mar 2011 18:53:51 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 53100 invoked by uid 500); 16 Mar 2011 18:53:51 -0000 Mailing-List: contact dev-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openjpa.apache.org Delivered-To: mailing list dev@openjpa.apache.org Received: (qmail 53092 invoked by uid 99); 16 Mar 2011 18:53:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 18:53:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Mar 2011 18:53:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 8DE0B3AC526 for ; Wed, 16 Mar 2011 18:53:29 +0000 (UTC) Date: Wed, 16 Mar 2011 18:53:29 +0000 (UTC) From: "Jeremy Bauer (JIRA)" To: dev@openjpa.apache.org Message-ID: <2005157633.7177.1300301609562.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Resolved: (OPENJPA-1787) Bean validation fails merging a new entity MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/OPENJPA-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jeremy Bauer resolved OPENJPA-1787. ----------------------------------- Resolution: Fixed Committed has*Listeners fix + additional testcases to trunk under rev 1082259. I don't think this additional change necessarily needs to be backported since it doesn't appear to cause any real problem, but it certainly could be. > Bean validation fails merging a new entity > ------------------------------------------ > > Key: OPENJPA-1787 > URL: https://issues.apache.org/jira/browse/OPENJPA-1787 > Project: OpenJPA > Issue Type: Bug > Components: jpa, kernel > Affects Versions: 2.0.1, 2.1.0, 2.2.0 > Reporter: Oliver Ringel > Assignee: Jeremy Bauer > Priority: Critical > Fix For: 2.1.1, 2.2.0 > > Attachments: OPENJPA-1787_2.1.x.patch, OPENJPA-1787_jUnits_2.1.x.patch, com.example.TestEmployeeDAO.txt, openjpa-1787.tar, testcase-openjpa-1787.tar > > > The bean validation is not working correctly > If you try to merge a new entity. > EntityManager em = entityManagerFactory.createEntityManager(); > Person person = new Person(); > person.setName("Oliver"); // Employee.name is annotated @NotNull > person = em.merge(person); > you get a ConstraintValidationException, although name is set. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira