codeconsole commented on PR #16222:
URL: https://github.com/apache/grails-core/pull/16222#issuecomment-5443488930

   @borinquenkid The key use case is reusable domain classes supplied by a 
plugin. Such a class cannot declare `String id` without coupling the plugin to 
MongoDB, or `Long id` without coupling it to Hibernate. With `defaultIdType = 
"native"`, the same undeclared-id domain model can adopt the datastore selected 
by the consuming application: `String` for MongoDB and `Long` for Hibernate. An 
explicitly declared `id` still takes precedence.


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