Created
June 13, 2011 17:18
-
-
Save gbadner/1023221 to your computer and use it in GitHub Desktop.
How should entity modes be dealt with in new metamodel?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
IIRC, an entity can only exist in one entity mode per SessionFactory. | |
If this is correct, then o.h.metamodel.domain.Entity does not need: | |
private final PojoEntitySpecifics pojoEntitySpecifics = new PojoEntitySpecifics(); | |
private final Dom4jEntitySpecifics dom4jEntitySpecifics = new Dom4jEntitySpecifics(); | |
private final MapEntitySpecifics mapEntitySpecifics = new MapEntitySpecifics(); | |
It only needs: | |
private final EntityModeEntitySpecifics entitySpecifics; | |
Is this a correct assumption? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment