Package sk.davinci.demows.entities

Examples of sk.davinci.demows.entities.Person


    public static List<Person> getPersons() {
        return persons;
    }

    public static Person getPerson(String surname) {
        Person person = null;
        for (int i = 0; i < persons.size(); i++) {
            if (persons.get(i).getSurname().equals(surname)) {
                person = persons.get(i);
                break;
            }
View Full Code Here


        return person;
    }

    public static Person getPerson(long personId) {
        Person person = null;
        for (int i = 0; i < persons.size(); i++) {
            if (persons.get(i).getIdPerson() == personId) {
                person = persons.get(i);
                break;
            }
View Full Code Here

        Query getQuery = sessionFactory.getCurrentSession().getNamedQuery("Person.getAll");
        return getQuery.list();
    }

    public Person getPerson(int paId) {
        Person person = (Person) sessionFactory.getCurrentSession().get(Person.class, paId);
        Hibernate.initialize(person.getAddresses());
       
        return person;
    }
View Full Code Here

    @ManagedProperty(value = "#{addressViewBean}")
    private AddressViewBean addressViewBean;

    @PostConstruct
    public void init() {
        selectedPerson = new Person();
    }
View Full Code Here

    public void init() {
        selectedPerson = new Person();
    }

    public void initCreatePerson() {
        selectedPerson = new Person();
        person_name = null;
        person_surname = null;
    }
View Full Code Here

TOP

Related Classes of sk.davinci.demows.entities.Person

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.