use of com.haulmont.cuba.core.model.Pet in project jmix by jmix-framework.
the class DlcBaseScreen method petsDlLoadDelegate.
@Install(to = "petsDl", target = Target.DATA_LOADER)
private List<Pet> petsDlLoadDelegate(LoadContext<Pet> loadContext) {
events.add(new LoadEvent("petsDl", loadContext));
Pet pet = metadata.create(Pet.class);
pet.setName("Misty");
return Collections.singletonList(pet);
}