package net.sourceforge.fenixedu.domain.softwareLicenseManagement; import net.sourceforge.fenixedu.domain.exceptions.DomainException; public abstract class PersonalKeyModel extends PersonalKeyModel_Base { public PersonalKeyModel() { super(); } @Override public void delete() { if (!getPersonalKeys().isEmpty()) { throw new DomainException("error.operator.softwareLicenseManagement.model.cannotDeleteVersionWithKey"); } super.delete(); } }