01: /*
02: * User: Michael Rettig
03: * Date: Aug 26, 2002
04: * Time: 8:54:30 PM
05: */
06: package net.sourceforge.jaxor.example.tests;
07:
08: import net.sourceforge.jaxor.example.simple.ContactEntity;
09: import net.sourceforge.jaxor.example.simple.ContactFinder;
10:
11: public class ContactFactory {
12: public static ContactEntity createContact() {
13: return createContact(new Long(123));
14: }
15:
16: public static ContactEntity createContact(Long id) {
17: ContactEntity entity = ContactFinder.newInstance(id);
18: entity.setCompany("co");
19: entity.setEmail("email");
20: entity.setNameFirst("first");
21: entity.setNameLast("last");
22: entity.setTitle("title");
23: entity.setPhoneNumber("phone number");
24: entity.setActive(Boolean.FALSE);
25: return entity;
26: }
27: }
|