Skip to content

PersistentEntity.getPropertyByName does not support nested properties. #14577

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

Open
snimavat opened this issue Apr 4, 2018 · 1 comment
Open

Comments

@snimavat
Copy link
Contributor

snimavat commented Apr 4, 2018

DefaultGrailsDomainClass.getPropertyByName - used to handle the nested properties. so propertyname with dots worked good, however with the new API, PersistentEntity.getPropertyByName does not support the nested properties. KeyValuePersistentEntity seems to support the propertyname with dot, but only for embedded properties.

Expected behavior:
Handle nested properties like GrailsDomainClass did in earlier versions.

Grails version, 3.3.2
Gorm 6.1.9.BUILD-SNAPSHOT

@jameskleeh
Copy link
Contributor

@snimavat Are you asking for getPropertyByName to traverse the associations of other entities?

@jameskleeh jameskleeh transferred this issue from apache/grails-core Nov 1, 2018
@jdaugherty jdaugherty transferred this issue from apache/grails-data-mapping Apr 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants