package com.servinglynk.hmis.warehouse.service.converter; 

import com.servinglynk.hmis.warehouse.core.model.EnrollmentCoc;
public class EnrollmentCocConverter  extends BaseConverter {

   public static com.servinglynk.hmis.warehouse.model.v2014.EnrollmentCoc modelToEntity (EnrollmentCoc model ,com.servinglynk.hmis.warehouse.model.v2014.EnrollmentCoc entity) {
       if(entity==null) entity = new com.servinglynk.hmis.warehouse.model.v2014.EnrollmentCoc();
       	  entity.setId(model.getEnrollmentCocId());
          entity.setCocCode(model.getCocCode());
       return entity;    
   }


   public static EnrollmentCoc entityToModel (com.servinglynk.hmis.warehouse.model.v2014.EnrollmentCoc entity) {
       EnrollmentCoc model = new EnrollmentCoc();
       model.setEnrollmentCocId(entity.getId());
       model.setCocCode(entity.getCocCode());
       model.setEnrollmentId(entity.getEnrollmentid().getId());
       model.setProjectCocId(entity.getProjectCoc().getId());
       model.setDateCreated(entity.getDateCreated());
       model.setDateUpdated(entity.getDateUpdated());
       return model;
   }


}

@@ -898,24 +898,58 @@
 mentid()
+ !=null ? entity.getEnrollmentid()
 .getId()
 );%0A     
@@ -932,32 +932,39 @@
 mentid().getId()
+ : null
 );%0A       model.
@@ -1001,24 +1001,56 @@
 ectCoc()
+ !=null ? entity.getProjectCoc()
 .getId()
 );%0A     
@@ -1033,32 +1033,39 @@
 ectCoc().getId()
+ : null
 );%0A       model.

Fix NPE in the enrollmentcoc api