jdaugherty commented on code in PR #15245:
URL: https://github.com/apache/grails-core/pull/15245#discussion_r2578873303


##########
grails-doc/src/en/guide/scaffolding.adoc:
##########
@@ -58,45 +59,115 @@ With this configured, when you start your application the 
actions and views will
 
 A CRUD interface will also be generated. To access this open 
`http://localhost:8080/book` in a browser.
 
-Note: The old alternative of defining `scaffold` property:
+If you prefer to keep your domain model in Java and 
https://hibernate.org/[mapped with Hibernate] you can still use scaffolding, 
simply import the domain class and use it in the `@Scaffold` annotation.
+
+===== Legacy Static Scaffold Property
+
+The older `static scaffold = Book` syntax is still supported but the 
`@Scaffold` annotation is preferred:
+
+[source,groovy]
+----
+class BookController {
+    static scaffold = Book  // Legacy syntax - @Scaffold annotation is 
preferred

Review Comment:
   You could change the AST transform to indicate it's "legacy" so it outputs a 
warning.  Longer term this would allow us to remove the property and keep the 
api clean.



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