-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@Type #40
Comments
A Custom formatter specified to an attr solve the problem? |
thats the idea. |
If you look at the sources, we have a class DateFormatter, implementing the interface Formatter. Then create a property called 'formatter' would receive a class that extends Formatter. |
Don't figureted, i see Formatter property but where use it? |
Maybe in Property class. |
ok, maybe annotated attr and automagically apply formatter, transparently. Without touch property. |
I think something like this: MyProperty { public void set(Object in, Object value) { public Object get(Object of) { } |
But properties are create by framework, how you make relation of entities that requiere formatter and property create in manager initialization? |
The format would be an attribute of the property, and if the entity attribute is not annotated with @column, a standard format and defined |
With a attr in @column you defined a formatter implementation? |
Something like this: @column(formatter=MyCustomFormatter.class) |
ok, i like that way. great. |
Could implement @type, same as hibernate. Class to convert cursor result to object.
The text was updated successfully, but these errors were encountered: