if (getChildRoomClassificationsSet().isEmpty()) { setRootDomainObject(null); super.setParentRoomClassification(null); super.deleteDomainObject(); } else { throw new DomainException( "error.cannot.delete.room.classification.with.existing.child.classifications"); }
if (getChildRoomClassificationsSet().isEmpty()) { setRootDomainObject(null); super.setParentRoomClassification(null); super.deleteDomainObject(); } else { throw new DomainException( "error.cannot.delete.room.classification.with.existing.child.classifications");
	public void delete() {		if (getChildRoomClassificationsSet().isEmpty()) {			setRootDomainObject(null);			super.setParentRoomClassification(null);			super.deleteDomainObject();		} else {			throw new DomainException(					"error.cannot.delete.room.classification.with.existing.child.classifications");		}	}