Example #1
0
 /** @see org.jboss.seam.framework.Home#createInstance() */
 @Override
 protected Disposal createInstance() {
   Disposal new_instance = new Disposal();
   new_instance.setActive(Boolean.TRUE);
   new_instance.setDueTo(
       getCoreSearching().getActiveSchoolYear(getEntityManager()).getTeachingSchoolYearStop());
   new_instance.setType(DisposalType.PARTIAL);
   new_instance.setTargetType(DisposalTargetType.TO_SCHOOL);
   return new_instance;
 }
Example #2
0
 @Transactional
 public String cancel() {
   Disposal current_disposal = getInstance();
   current_disposal.setActive(Boolean.FALSE);
   super.update();
   info(
       "principal '#0' canceled employee #1 current leave #1.",
       getPrincipalName(),
       current_disposal.getEmployee(),
       current_disposal);
   return "updated";
 }