From dev-return-20362-apmail-openjpa-dev-archive=openjpa.apache.org@openjpa.apache.org Sun Apr 8 04:27:24 2012 Return-Path: X-Original-To: apmail-openjpa-dev-archive@www.apache.org Delivered-To: apmail-openjpa-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 604AB9D0E for ; Sun, 8 Apr 2012 04:27:24 +0000 (UTC) Received: (qmail 92196 invoked by uid 500); 8 Apr 2012 04:27:24 -0000 Delivered-To: apmail-openjpa-dev-archive@openjpa.apache.org Received: (qmail 91952 invoked by uid 500); 8 Apr 2012 04:27:20 -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 91911 invoked by uid 99); 8 Apr 2012 04:27:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Apr 2012 04:27:18 +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; Sun, 08 Apr 2012 04:27:16 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 1F89935DECD for ; Sun, 8 Apr 2012 04:26:54 +0000 (UTC) Date: Sun, 8 Apr 2012 04:26:54 +0000 (UTC) From: "Roger Keays (Commented) (JIRA)" To: dev@openjpa.apache.org Message-ID: <44531494.509.1333859214875.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (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:comment-tabpanel&focusedCommentId=13249471#comment-13249471 ] Roger Keays commented on OPENJPA-1787: -------------------------------------- Did this bug fix make it into 2.2.0? I have exactly the same problem using @Basic(optional=false) > 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. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira