Created
June 13, 2011 15:52
-
-
Save gbadner/1023040 to your computer and use it in GitHub Desktop.
How to resolve type in metamodel?
This file contains 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
How should persisters get property type (i.e. o.h.type.Type)? | |
Alternatives: | |
1) in MetamodelImpl: new MetamodelTypeResolver( this ).resolve(); | |
2) in persisters: attributeBinding.getType( typeResolver ); | |
- typeResolver would be the TypeResolver scoped to the SessionFactory |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Until I hear otherwise, I'll assume that the SessionFactory has a "scoped" TypeResolver and that Attribute.getType( typeResolver ) (alternative 2) will be used to get attribute types.