public boolean equals(Object obj) { if (obj == null) { return false; } ViewFinalTitlesClp viewFinalTitles = null; try { viewFinalTitles = (ViewFinalTitlesClp) obj; } catch (ClassCastException cce) { return false; } Integer pk = viewFinalTitles.getPrimaryKey(); if (getPrimaryKey().equals(pk)) { return true; } else { return false; } }
public Object clone() { ViewFinalTitlesClp clone = new ViewFinalTitlesClp(); clone.setViewFinalTitlesId(getViewFinalTitlesId()); clone.setRootId(getRootId()); clone.setUserId(getUserId()); clone.setTitleId(getTitleId()); clone.setTitleName(getTitleName()); return clone; }