Skip to content

Instantly share code, notes, and snippets.

@gbadner
Created June 13, 2011 15:52
Show Gist options
  • Save gbadner/1023040 to your computer and use it in GitHub Desktop.
Save gbadner/1023040 to your computer and use it in GitHub Desktop.
How to resolve type in metamodel?
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
@gbadner
Copy link
Author

gbadner commented Jun 13, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment