openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Donald Woods (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OPENJPA-1787) Bean validation fails merging a new entity
Date Mon, 13 Sep 2010 12:57:32 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-1787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12908769#action_12908769
] 

Donald Woods commented on OPENJPA-1787:
---------------------------------------

Can you provide more details about your application and environment?  You marked affects 2.0.1
and 2.1.0, so which jars are you using?  The openjpa-2.x.x.jar does not include the BVAL API
or implementation.  If you grab the latest openjpa-all-2.1.0-SNAPSHOT.jar then that includes
the Apache Geronimo Validation API and Apache Bean Validation implementation.

> 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: validation
>    Affects Versions: 2.0.1, 2.1.0
>         Environment: Ubuntu 10.04, Spring 3.0.3
>            Reporter: Oliver Ringel
>         Attachments: openjpa-1787.tar
>
>
> The bean validation is not working correctly, if you try to merge not existing entity.
>         Employee employee = new Employee();
>         employee.setName("Oliver");                               // Employee.name is
annotated @NotNull 
>         employee = em.merge(employee);
> em.persist and em.merge together with a managed entity is working as expected.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message