All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kie.kogito.examples.demo.PersonsModel Maven / Gradle / Ivy

There is a newer version: 0.9.0
Show newest version
package org.kie.kogito.examples.demo;

import java.util.Map;
import java.util.HashMap;

@org.kie.internal.kogito.codegen.Generated(value = "kogit-codegen", reference = "persons", name = "Persons")
public class PersonsModel implements org.kie.kogito.Model {

    private String id;

    public void setId(String id) {
        this.id = id;
    }

    public String getId() {
        return this.id;
    }

    @Override
    public Map toMap() {
        Map params = new HashMap();
        params.put("person", this.person);
        return params;
    }

    @Override
    public void fromMap(Map params) {
        fromMap(null, params);
    }

    public void fromMap(String id, Map params) {
        this.id = id;
        this.person = (org.kie.kogito.examples.demo.Person) params.get("person");
    }

    private org.kie.kogito.examples.demo.Person person;

    public org.kie.kogito.examples.demo.Person getPerson() {
        return person;
    }

    public void setPerson(org.kie.kogito.examples.demo.Person person) {
        this.person = person;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy