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

git-svn-id: https://svn.apache.org/repos/asf/openjpa/branches/2.0.x@1294721 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jody Grassel 2012-02-28 16:33:30 +00:00
parent 371af37117
commit 560cd151e5
1 changed files with 1 additions and 1 deletions

View File

@ -169,7 +169,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));
}