-
Notifications
You must be signed in to change notification settings - Fork 690
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
Is it possible to get an entity from a ResultRow
that contains aliased table?
#404
Comments
ResultRow
that contains aliased table?ResultRow
that contains aliased table?
@Tapac |
@Tapac |
@albertPu , I do not quite understand what do you mean and how this relates to a current issue. |
@Tapac How can I define the serialization program myself? |
Please add this feature :) |
For those still searching: this has been implemented so now it's possible to deserialize ResultRow into a model. In my case, this is what I've had to write: RevenueTable.innerJoin(ProductTable)
.slice(RevenueTable.columns)
.select {
...
}.let { RevenueModel.wrapRows(it) }.toList() Hope this can help other people in my same situation. |
I'm not following the solution.... what needs to happen? I don't see the wrapRows function anywhere, nor Table2Entityh. Somehow there has to be an efficient way to get entities back instead of resultRows without manually doing this for every table right?
|
Any solution to get value from alias in ResultRow? |
@joaoeudes7 , please check that test, it contains an example. |
Hi!
Consider a simple example:
Is there a way to get my entity from
ResultRow
?The text was updated successfully, but these errors were encountered: