jdaugherty commented on code in PR #15266:
URL: https://github.com/apache/grails-core/pull/15266#discussion_r2585581977
##########
grails-datamapping-validation/src/main/groovy/grails/gorm/validation/Constrained.groovy:
##########
@@ -88,9 +88,16 @@ interface Constrained {
*/
boolean isUrl()
/**
- * @return Whether the value should be displayed
+ * @return Whether the value should be displayed (for backwards
compatibility)
+ * @deprecated Use {@link #getDisplayType()} instead for more granular
control
*/
boolean isDisplay()
+
+ /**
+ * @return The display type controlling where this property is shown in
scaffolded views
+ * @since 7.1
+ */
+ DisplayType getDisplayType()
Review Comment:
Adding the constraint isn't, but changing the base interface that's applied
to every object I assume would be breaking. We need to test this.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]