codeconsole commented on code in PR #15583:
URL: https://github.com/apache/grails-core/pull/15583#discussion_r3164526835


##########
grails-data-mongodb/bson/src/main/groovy/org/grails/datastore/bson/codecs/encoders/IdentityEncoder.groovy:
##########
@@ -51,6 +70,14 @@ class IdentityEncoder implements PropertyEncoder<Identity> {
 
     }
 
+    private static Class<?> resolveStoredAs(Identity property) {
+        try {
+            return property?.owner?.mapping?.identifier?.storedAs
+        } catch (Throwable ignored) {

Review Comment:
   Fixed: added SLF4J logger + ConcurrentHashMap.newKeySet() warn-once cache. 
Logs one warn per owning entity class, pointing users at storedAs:String for 
natural-key domains.



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