openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r801739 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java
Date Thu, 06 Aug 2009 17:37:35 GMT
Author: allee8285
Date: Thu Aug  6 17:37:34 2009
New Revision: 801739

URL: http://svn.apache.org/viewvc?rev=801739&view=rev
Log:
OPENJPA-1230 - transform javax.persistence.validatin.mode value to upper case before ValidationMode
conversion.

Modified:
    openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java

Modified: openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java?rev=801739&r1=801738&r2=801739&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java
(original)
+++ openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java
Thu Aug  6 17:37:34 2009
@@ -546,7 +546,7 @@
     }
     
     protected void setValidationMode(String mode) {
-        setValidationMode(Enum.valueOf(ValidationMode.class, mode));
+        setValidationMode(Enum.valueOf(ValidationMode.class, mode.toUpperCase()));
     }
 
     public void setValidationMode(ValidationMode mode) {



Mime
View raw message