Skip to content

added Table.mapMapper support#20

Open
Miha-x64 wants to merge 1 commit intoandrewoma:masterfrom
Miha-x64:master
Open

added Table.mapMapper support#20
Miha-x64 wants to merge 1 commit intoandrewoma:masterfrom
Miha-x64:master

Conversation

@Miha-x64
Copy link

@Miha-x64 Miha-x64 commented Oct 17, 2017

Added mapMapper() function to Table class.
This is useful when you want to convert Map<String, String> (e. g. filled web-form) into an object, and helps to reuse create(Value<T>) function for this case.

If this implementation is too specific, I'll be glad to see and implemeny any suggestions on how to make it more general-purpose.

@Miha-x64
Copy link
Author

Implementing such mapping out of Kwery is problematic, because columns do not preserve type information. Using this workaround at the moment.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant