public void delete() { for (; !getShiftDistributionEntriesSet().isEmpty(); getShiftDistributionEntriesSet().iterator().next().delete()) {; } super.setExecutionYear(null); setRootDomainObject(null); super.deleteDomainObject(); }
protected void init(ExecutionYear executionYear) { checkParameters(executionYear); if (executionYear.hasShiftDistribution()) { throw new DomainException( "error.candidacy.degree.ShiftDistribution.executionYear.already.has.a.shiftDistribution"); } super.setExecutionYear(executionYear); }
private ShiftDistribution() { super(); super.setRootDomainObject(Bennu.getInstance()); }