openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From allee8...@apache.org
Subject svn commit: r801866 - /openjpa/trunk/openjpa-persistence/src/main/java/org/apache/openjpa/persistence/PersistenceUnitInfoImpl.java
Date Fri, 07 Aug 2009 02:32:03 GMT
Author: allee8285
Date: Fri Aug  7 02:32:03 2009
New Revision: 801866

URL: http://svn.apache.org/viewvc?rev=801866&view=rev
Log:
OPENJPA-1230 - Make sure the javax.persistence.validatin.mode value usage matches the spec's
requirement(i.e. lower case).

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=801866&r1=801865&r2=801866&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
Fri Aug  7 02:32:03 2009
@@ -459,7 +459,7 @@
         
         // convert validation-mode enum to a StringValue
         if (info.getValidationMode() != null)
-            map.put(VALIDATION_MODE, String.valueOf(info.getValidationMode()));
+            map.put(VALIDATION_MODE, String.valueOf(info.getValidationMode()).toLowerCase());
 
         if (info.getPersistenceXMLSchemaVersion() != null) {
             map.put(PERSISTENCE_VERSION, info.getPersistenceXMLSchemaVersion());



Mime
View raw message