Пример #1
0
 public Company createTopOrganization(String name, String sn, Date date) {
   Company result = new Company(name, sn);
   result.setCreateDate(date);
   result.createAsTopOrganization();
   return result;
 }
Пример #2
0
 public Company createCompany(String name, String sn, Date date) {
   Company result = new Company(name, sn);
   result.setCreateDate(date);
   result.save();
   return result;
 }