I am new to grails, and I am having a problem on how to check if a persistent property is constrained in Grails 6 :
List<PersistentProperty> persistentProperties = grailsApplication.mappingContext.getPersistentEntity("Entity").persistentProperties List constrainedProperties = persistentProperties.find { isContrainedProperty(it) } Please help me in writing the method "isContrainedProperty(it)"
Thanks!
Expect : writing a method that checks if given PersistentProperty is contrained in Grails 6