mirror of https://github.com/apache/openjpa.git
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:
parent
371af37117
commit
560cd151e5
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue