package org.sistcoop.persona.services.managers;

import javax.ejb.Stateless;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;

import org.sistcoop.persona.models.TipoDocumentoModel;
import org.sistcoop.persona.representations.idm.TipoDocumentoRepresentation;

@Stateless
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class TipoDocumentoManager {

    public void update(TipoDocumentoModel tipoDocumentoModel, TipoDocumentoRepresentation representation) {
        // TODO Auto-generated method stub
        
    }

    public void disable(TipoDocumentoModel tipoDocumentoModel) {
        // TODO Auto-generated method stub
        
    }

}
@@ -208,16 +208,70 @@
 oModel;%0A
+import org.sistcoop.persona.models.enums.TipoPersona;%0A
 import o
@@ -483,38 +483,25 @@
 umentoModel 
-tipoDocumentoM
+m
 odel, TipoDo
@@ -529,74 +529,228 @@
  rep
-resentation) %7B%0A        // TODO Auto-gene
+) %7B%0A        model.setDenominacion(rep.getDenominacion());%0A        model.setCantidadCaracteres(rep.getCantidadCa
 ra
+c
 te
-d method stub%0A        
+res());%0A        model.setTipoPersona(TipoPersona.valueOf(rep.getTipoPersona()));%0A        model.commit();
 %0A   
@@ -800,22 +800,9 @@
 del 
-tipoDocumentoM
+m
 odel
@@ -817,51 +817,55 @@
     
-// TODO Auto-generated method stub%0A        
+model.setEstado(false);%0A        model.commit();
 %0A   

update tipo documento