Search in sources :

Example 1 with Pet

use of test_support.entity.petclinic.Pet in project jmix by jmix-framework.

the class DlcBaseTestScreen 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);
}
Also used : Pet(test_support.entity.petclinic.Pet) Install(io.jmix.ui.screen.Install)

Aggregations

Install (io.jmix.ui.screen.Install)1 Pet (test_support.entity.petclinic.Pet)1