stesteau opened a new issue, #14361:
URL: https://github.com/apache/grails-core/issues/14361

   ```
   @Entity
   class Element implements Serializable {
        static mapWith = "mongo"
        Map<String,Video> videos = new HashMap<String,Video>()
        static embedded = ["videos"]
   }
   
   @Entity
   class Video extends BaseTrack implements Serializable, Track {
        static mapWith = "mongo"
        Map<String,VideoChannel> channels = new HashMap<String,VideoChannel>() 
   }
   
   @Entity
   class VideoChannel extends Channel implements Serializable {
   
       static mapWith = "mongo"
       
       String codec
           
       static constraints = {
           codec(nullable: false, inList: ['Uncompressed', 'H.264/MPEG-4 
AVC-Intra 100'])
       }
   }
   
   element.videos['bleh'].channels['bleh].codec = "Bullocks"
   element.save(flush:true, failOnError:true)
   ```
   
   Saving Element pass without error, it doesn't validate nested objects.
   If I try to save the channel I have the expected 
«grails.validation.ValidationException: Validation error occurred during call 
to save():»
   Adding deepValidation doesn't work either...
   
   Context :
   Grails : 5.x
   GORM : 7.3.0
   


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