|  1 |     | 
     | 
  |  2 |     | 
     | 
  |  3 |     | 
     | 
  |  4 |     | 
     | 
  |  5 |     | 
     | 
  |  6 |     | 
     | 
  |  7 |     | 
     | 
  |  8 |     | 
     | 
  |  9 |     | 
     | 
  |  10 |     | 
     | 
  |  11 |     | 
     | 
  |  12 |     | 
     | 
  |  13 |     | 
     | 
  |  14 |     | 
     | 
  |  15 |     | 
     | 
  |  16 |     | 
   package org.kuali.rice.kim.impl.responsibility;  | 
  |  17 |     | 
     | 
  |  18 |     | 
     | 
  |  19 |     | 
   import javax.persistence.Column  | 
  |  20 |     | 
   import javax.persistence.Entity  | 
  |  21 |     | 
   import javax.persistence.Id  | 
  |  22 |     | 
   import javax.persistence.Table  | 
  |  23 |     | 
   import org.kuali.rice.kim.api.common.template.Template  | 
  |  24 |     | 
   import org.kuali.rice.kim.api.common.template.TemplateContract  | 
  |  25 |     | 
   import org.kuali.rice.kim.impl.common.template.TemplateBo  | 
  |  26 |     | 
     | 
  |  27 |     | 
     | 
  |  28 |     | 
     | 
  |  29 |     | 
     | 
  |  30 |     | 
   @Entity  | 
  |  31 |     | 
   @Table(name = "KRIM_RSP_TMPL_T")  | 
  |  32 |     | 
   public class ResponsibilityTemplateBo  extends TemplateBo implements TemplateContract { | 
  |  33 |     | 
       private static final long serialVersionUID = 1L;  | 
  |  34 |     | 
     | 
  |  35 |     | 
       @Id  | 
  |  36 |     | 
       @Column(name = "RSP_TMPL_ID")  | 
  |  37 |     | 
       String id  | 
  |  38 |     | 
     | 
  |  39 |     | 
         | 
  |  40 |     | 
     | 
  |  41 |     | 
     | 
  |  42 |     | 
     | 
  |  43 |     | 
     | 
  |  44 |     | 
       static Template to(ResponsibilityTemplateBo bo) { | 
  |  45 |    0 |            if (bo == null) { | 
  |  46 |    0 |                return null  | 
  |  47 |     | 
           }  | 
  |  48 |     | 
     | 
  |  49 |    0 |            return Template.Builder.create(bo).build();  | 
  |  50 |     | 
       }  | 
  |  51 |     | 
     | 
  |  52 |     | 
         | 
  |  53 |     | 
     | 
  |  54 |     | 
     | 
  |  55 |     | 
     | 
  |  56 |     | 
     | 
  |  57 |     | 
       static ResponsibilityTemplateBo from(Template im) { | 
  |  58 |    0 |            if (im == null) { | 
  |  59 |    0 |                return null  | 
  |  60 |     | 
           }  | 
  |  61 |     | 
     | 
  |  62 |    0 |            ResponsibilityTemplateBo bo = new ResponsibilityTemplateBo()  | 
  |  63 |    0 |            bo.id = im.id  | 
  |  64 |    0 |            bo.namespaceCode = im.namespaceCode  | 
  |  65 |    0 |            bo.name = im.name  | 
  |  66 |    0 |            bo.description = im.description  | 
  |  67 |    0 |            bo.active = im.active  | 
  |  68 |    0 |            bo.kimTypeId = im.kimTypeId  | 
  |  69 |    0 |            bo.versionNumber = im.versionNumber  | 
  |  70 |    0 |            bo.objectId = im.objectId;  | 
  |  71 |     | 
     | 
  |  72 |    0 |            return bo  | 
  |  73 |     | 
       }  | 
  |  74 |     | 
   }  |