public Equipment getSelected() { if (current == null) { current = new Equipment(); current.setEquipmentPK(new EntityDB.EquipmentPK()); selectedItemIndex = -1; } return current; }
public String prepareCreate() { current = new Equipment(); current.setEquipmentPK(new EntityDB.EquipmentPK()); selectedItemIndex = -1; return "Create"; }