OPENJPA-2146: StateManager for Embeddable may throw Exception while initializing

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@1294791 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jody Grassel 2012-02-28 19:08:03 +00:00
parent 5f5b20f523
commit 8971fda1aa
1 changed files with 1 additions and 1 deletions

View File

@ -175,7 +175,7 @@ public class StateManagerImpl
if (broker.getMultithreaded()) if (broker.getMultithreaded())
_instanceLock = new ReentrantLock(); _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)); throw new UserException(_loc.get("meta-unknownid", _meta));
} }