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/trunk@1294791 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5f5b20f523
commit
8971fda1aa
|
@ -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));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue