code: private void onValidateEmbeddable(Object embeddedObject, EmbeddableType embeddedColumn)
      {
          if (embeddedObject instanceof Collection)
          {
             
              for (Object obj : (Collection) embeddedObject)
              {
                  for (Object column : embeddedColumn.getAttributes())
                  {
  
                      Attribute columnAttribute = (Attribute) column;
                      Field f = (Field) columnAttribute.getJavaMember();
                      this.factory.validate(f, embeddedObject, new AttributeConstraintRule());
                  }
              }
          }
          else
          {
              for (Object column : embeddedColumn.getAttributes())
              {
  
                  Attribute columnAttribute = (Attribute) column;
                  Field f = (Field) ((Field) columnAttribute.getJavaMember());
                  this.factory.validate(f, embeddedObject, new AttributeConstraintRule());
  
              }
          }
  
      }
docs: Checks constraints present on embeddable attributes
  
  @param embeddedObject
  @param embeddedColumn
  @param embeddedFieldName