public int compareTo(Object obj, boolean caseInsensitive) {
   if (obj == null) {
     return -1;
   }
   if (caseInsensitive) ; // this is to avoid eclipse warning only.
   if (!(ComplementaryTherapyTreatmentVo.class.isAssignableFrom(obj.getClass()))) {
     throw new ClassCastException(
         "A ComplementaryTherapyTreatmentVo object cannot be compared an Object of type "
             + obj.getClass().getName());
   }
   ComplementaryTherapyTreatmentVo compareObj = (ComplementaryTherapyTreatmentVo) obj;
   int retVal = 0;
   if (retVal == 0) {
     if (this.getID_ComplementaryTherapyTreatment() == null
         && compareObj.getID_ComplementaryTherapyTreatment() != null) return -1;
     if (this.getID_ComplementaryTherapyTreatment() != null
         && compareObj.getID_ComplementaryTherapyTreatment() == null) return 1;
     if (this.getID_ComplementaryTherapyTreatment() != null
         && compareObj.getID_ComplementaryTherapyTreatment() != null)
       retVal =
           this.getID_ComplementaryTherapyTreatment()
               .compareTo(compareObj.getID_ComplementaryTherapyTreatment());
   }
   return retVal;
 }