You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Single instances of domain objects can be projected as well. This can be done with standard projections, i.e. hardcoding the returned object like this:
In this case, the normal findById mechanism kicks in and the id properties are treated correct (depending on whether internally or externally generated or externally assigned).
It is also possible to use dynamic projections like this
In this case, the part tree query mechanism (aka derived queries) kicks in and sadly, this one doesn't treat the id property correctly.
This will affect other derived finder methods as well that build upon the ID property.
The chance that someone actually uses a derived query method on a id is rather low, and the projecting case is one of the few good reasons todo so.
The text was updated successfully, but these errors were encountered:
Single instances of domain objects can be projected as well. This can be done with standard projections, i.e. hardcoding the returned object like this:
In this case, the normal
findById
mechanism kicks in and the id properties are treated correct (depending on whether internally or externally generated or externally assigned).It is also possible to use dynamic projections like this
In this case, the part tree query mechanism (aka derived queries) kicks in and sadly, this one doesn't treat the id property correctly.
This will affect other derived finder methods as well that build upon the ID property.
The chance that someone actually uses a derived query method on a id is rather low, and the projecting case is one of the few good reasons todo so.
The text was updated successfully, but these errors were encountered: