Beispiel #1
0
 public Map<String, String> getPersonMap(Company company, boolean withEmpty) {
   List<Person> persons = personDao.getAllPersonByCompany(company);
   Map<String, String> map = new TreeMap<String, String>();
   map.clear();
   if (withEmpty) {
     map.put("", null);
   }
   for (Person person : persons) {
     map.put(person.toString() == null ? "" : person.toString(), person.getId().toString());
   }
   return map;
 }
Beispiel #2
0
 public Person savePerson(Person person) {
   return personDao.savePerson(person);
 }
Beispiel #3
0
 public void saveOrUpdate(Person person) {
   personDao.saveOrUpdate(person);
 }
Beispiel #4
0
 public Person findPersonById(Company company, long id) {
   return personDao.findPersonById(company, id).get(0);
 }
Beispiel #5
0
 public List<Person> getAllPersonByCompany(Company company) {
   return personDao.getAllPersonByCompany(company);
 }