musketyr opened a new issue, #14549: URL: https://github.com/apache/grails-core/issues/14549
### Steps to Reproduce 1. Create a domain class 2. Create data service for given data class 3. You can use both GORM methods and GORM data services ### Expected Behaviour To emphasize using GORM data services once the service was created there should be way how to disallow using the GORM data method in the application. Instead of plain boolean value, I would prefer having an enum for "soft disallow". The settings should ideally take place as a value of `@Entity` annotation. ``` @Entity(gormMethods = GormMethodsUsage.PRESENT) // default, current behaviour @Entity(gormMethods = GormMethodsUsage.WARN) // using the method will log a warning on runtime and ideally also during compile time @Entity(gormMethods = GormMethodsUsage.ERROR) // using the method will log an error on runtime and ideally also during compile time @Entity(gormMethods = GormMethodsUsage.NOT_PRESENT) // the GORM methods are not present at all, this is an option for brand new projects ``` ### Actual Behaviour GORM methods are always present. -- 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]
