Since "DefaultGrailsDomainClass" & "GrailsDomainClassProperty" are removed in Grails4 and replaced by the PersistentEntity & PersistenProperty, the transient properties are not retrieved with the persistentProperties and has to be retrieved separately.
This can be done directly on the domain class like
but the problem is that belongsTo in the domain class is returned as transient as well, like if I have static belongsTo = [contact:Contact]in my domain class, I get contactId among the transients! Which is causing problems when getting the properties types.
Anyone knows how to exclude the belongsTo from the returned transients if this is even possible?