Skip to content
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

Partially fixes grails/grails-core#11450 . The PersistentEntity getId… #14

Merged
merged 5 commits into from
Jul 2, 2020

Conversation

davydotcom
Copy link
Contributor

@davydotcom davydotcom commented Jul 1, 2020

Partially fixes grails/grails-core#11450 . The PersistentEntity getIdentity() property is null for a composite key. This skips the rendering of the identity if it is null. However, it does not render the properties either since they are not considered persistentProperties(). It is recommended to use a custom marshaller as Composite keys, though supported, are not recommmended as per the documentation. Also updated project to gradle 6.5

…entity() property is null for a composite key. This skips the rendering of the identity if it is null. However, it does not render the properties either since they are not considered persistentProperties(). It is recommended to use a custom marshaller as Composite keys, though supported, are not recommmended as per the documentation. Also updated project to gradle 6.5
@jameskleeh
Copy link
Collaborator

I don't see this module getting another release. Converters is not included with the latest Grails 3.3 and was considered deprecated then.

@davydotcom
Copy link
Contributor Author

People still use grails 3.3. and grails 3.3 is not EOL and it has a bug. I definitely think it should get another release.

@davydotcom
Copy link
Contributor Author

This PR was modified to flag JSON and XML classes as @Deprecated. It appears this converters module will be phased out soon.

@graemerocher graemerocher merged commit e5f8d8f into grails:master Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DomainClassMarshaller and domain classes with composite key
3 participants