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
publicinterfaceUserRepositoryextendsCrudRepository<User, UserId> {
@Query("SELECT u.name as name, u.gender as gender FROM user u")
UserInfofindById(UserIdid);
}
Wim Deblauwe opened DATACMNS-1762 and commented
Suppose a projection like this:
with:
When I currently try this, I get
null
back instead ofOptional.empty()
ifu.gender
isnull
in the database.It would be nice if this was possible.
As a "workaround", I define the projection as:
Affects: 2.2.8 (Moore SR8)
Issue Links:
Referenced from: pull request #459
The text was updated successfully, but these errors were encountered: