Class EntityEmbeddedInitializer

java.lang.Object
io.jmix.core.impl.EntityEmbeddedInitializer
All Implemented Interfaces:
EntityInitializer, org.springframework.core.Ordered

@Component("core_EntityEmbeddedInitializer") public class EntityEmbeddedInitializer extends Object implements EntityInitializer, org.springframework.core.Ordered
  • Field Details

    • metadata

      @Autowired protected Metadata metadata
  • Constructor Details

    • EntityEmbeddedInitializer

      public EntityEmbeddedInitializer()
  • Method Details

    • isApplicableToExistingEntity

      public boolean isApplicableToExistingEntity()
      Returns false because the created embedded instances are always discarded by the caller: the entity is populated from the existing data right after creation.
      Specified by:
      isApplicableToExistingEntity in interface EntityInitializer
    • initEntity

      public void initEntity(Object entity)
      Specified by:
      initEntity in interface EntityInitializer
    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered