openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jgras...@apache.org
Subject svn commit: r1294818 - /openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
Date Tue, 28 Feb 2012 20:24:04 GMT
Author: jgrassel
Date: Tue Feb 28 20:24:04 2012
New Revision: 1294818

URL: http://svn.apache.org/viewvc?rev=1294818&view=rev
Log:
OPENJPA-2146: StateManager for Embeddable may throw Exception while initializing

Modified:
    openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java

Modified: openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
URL: http://svn.apache.org/viewvc/openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java?rev=1294818&r1=1294817&r2=1294818&view=diff
==============================================================================
--- openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
(original)
+++ openjpa/branches/2.2.x/openjpa-kernel/src/main/java/org/apache/openjpa/kernel/StateManagerImpl.java
Tue Feb 28 20:24:04 2012
@@ -175,7 +175,7 @@ public class StateManagerImpl
         if (broker.getMultithreaded())
         	_instanceLock = new ReentrantLock();
 
-        if (_meta.getIdentityType() == ClassMetaData.ID_UNKNOWN)
+        if (_meta.getIdentityType() == ClassMetaData.ID_UNKNOWN && !_meta.isEmbeddable())
             throw new UserException(_loc.get("meta-unknownid", _meta));
     }
 



Mime
View raw message