sbglasius commented on code in PR #15266:
URL: https://github.com/apache/grails-core/pull/15266#discussion_r2623807605


##########
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:
   Turns out, I'm implementing `grails.gorm.validation.Constraint` and not 
`grails.gorm.validation.Constrained` 
   
   I think it would be best, if @codeconsole makes a `Constrained` 
implementation with 7.0.4 and run it with 7.1.0-SNAPSHOT
   
   Or direct me on how to do so.



-- 
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]

Reply via email to