Search in sources :

Example 6 with Metadata

use of io.jmix.core.Metadata in project jmix by jmix-framework.

the class EntitySnapshot method init.

@PostConstruct
public void init() {
    Metadata metadata = AppBeans.get(Metadata.class);
    entity = metadata.create(ReferenceToEntity.class);
}
Also used : Metadata(io.jmix.core.Metadata) ReferenceToEntity(io.jmix.data.entity.ReferenceToEntity) PostConstruct(javax.annotation.PostConstruct)

Aggregations

Metadata (io.jmix.core.Metadata)6 MetaProperty (io.jmix.core.metamodel.model.MetaProperty)3 MetaClass (io.jmix.core.metamodel.model.MetaClass)2 Persistence (com.haulmont.cuba.core.Persistence)1 io.jmix.core (io.jmix.core)1 Entity (io.jmix.core.Entity)1 ExtendedEntities (io.jmix.core.ExtendedEntities)1 MetadataTools (io.jmix.core.MetadataTools)1 ReferenceToEntity (io.jmix.data.entity.ReferenceToEntity)1 ArrayList (java.util.ArrayList)1 Collection (java.util.Collection)1 LinkedHashSet (java.util.LinkedHashSet)1 Set (java.util.Set)1 PostConstruct (javax.annotation.PostConstruct)1