-
Notifications
You must be signed in to change notification settings - Fork 862
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
creating QBean projection with identical Path names #1214
Comments
How do you want these to be applied to the bean? |
I want only name of team and name of team leader, all other properties should be null. Isn't that natural? |
QBean requires unique propert keys and doesn't support implicit intermediate property creation. |
Does that mean by design I cannot use for instance MongoDB's projection for nested property and project MongoDB's document to java bean? |
You can populate nested beans, but you will need to do so explicitly. e.g. Projections.bean(Team.class, team.name,
Projections.bean(Leader.class, team.leader.name).as("leader")) Assuming that |
OK, got it. Thanks. Would be nice to support more concise syntax. |
I have two Pathes with identical property names (team.name and team.leader.name)
fails with
The text was updated successfully, but these errors were encountered: