I'm trying to get all properties of domain objects as a Map, and found out that Grails provides built-in access to that through the properties
field. However, I noticed that it ignores id
property. Is there a way to force it to return id
just like any other object properties?
AFAIK there is no way to achieve this by using the Groovy JDK method Object#getProperties
.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments