-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Creación del servicio de Procedimientos - correcciones sobre la busqueda en entidad FICHA
- Loading branch information
1 parent
9a9a53f
commit af9081d
Showing
14 changed files
with
2,184 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
152 changes: 152 additions & 0 deletions
152
moduls/apirest/src/es/caib/rolsac/apirest/v1/model/Iniciacions.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
package es.caib.rolsac.apirest.v1.model; | ||
|
||
import java.io.IOException; | ||
|
||
import javax.xml.bind.annotation.XmlRootElement; | ||
|
||
import com.fasterxml.jackson.core.JsonProcessingException; | ||
import com.fasterxml.jackson.core.type.TypeReference; | ||
import com.fasterxml.jackson.databind.ObjectMapper; | ||
import com.fasterxml.jackson.databind.SerializationFeature; | ||
|
||
import es.caib.rolsac.apirest.v1.utiles.Constantes; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
|
||
/** | ||
* Iniciacion. | ||
* | ||
* @author Indra | ||
* | ||
*/ | ||
@XmlRootElement | ||
@ApiModel(value = "Iniciacion", description = Constantes.TXT_DEFINICION_CLASE + "Iniciacion") | ||
public class Iniciacions extends EntidadBase { | ||
|
||
public Iniciacions(org.ibit.rol.sac.model.Iniciacion tr, String urlBase,String idioma,boolean hateoasEnabled) { | ||
super(tr, urlBase, idioma, hateoasEnabled); | ||
} | ||
|
||
public Iniciacions() { | ||
super(); | ||
} | ||
|
||
/** codigo. **/ | ||
@ApiModelProperty(value = "codigo") | ||
private Long codigo; | ||
|
||
/** descripcion. **/ | ||
@ApiModelProperty(value = "descripcion") | ||
private String descripcion; | ||
|
||
/** nombre. **/ | ||
@ApiModelProperty(value = "nombre") | ||
private String nombre; | ||
|
||
/** codigoEstandar. **/ | ||
@ApiModelProperty(value = "codigoEstandar") | ||
private String codigoEstandar; | ||
|
||
|
||
public static Iniciacions valueOf(final String json) { | ||
final ObjectMapper objectMapper = new ObjectMapper(); | ||
final TypeReference<Iniciacions> typeRef = new TypeReference<Iniciacions>() { | ||
}; | ||
Iniciacions obj; | ||
try { | ||
obj = (Iniciacions) objectMapper.readValue(json, typeRef); | ||
} catch (final IOException e) { | ||
// TODO PENDIENTE | ||
throw new RuntimeException(e); | ||
} | ||
return obj; | ||
} | ||
|
||
|
||
public String toJson() { | ||
try { | ||
final ObjectMapper objectMapper = new ObjectMapper(); | ||
objectMapper.configure(SerializationFeature.INDENT_OUTPUT, false); | ||
return objectMapper.writeValueAsString(this); | ||
} catch (final JsonProcessingException e) { | ||
// TODO PENDIENTE | ||
throw new RuntimeException(e); | ||
} | ||
} | ||
|
||
|
||
@Override | ||
protected void addSetersInvalidos() { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
@Override | ||
protected void generaLinks(String urlBase) { | ||
// TODO Auto-generated method stub | ||
|
||
} | ||
|
||
@Override | ||
public void setId(Long codigo) { | ||
this.codigo = codigo; | ||
|
||
} | ||
|
||
/** | ||
* @return the codigo | ||
*/ | ||
public Long getCodigo() { | ||
return codigo; | ||
} | ||
|
||
/** | ||
* @param codigo the codigo to set | ||
*/ | ||
public void setCodigo(Long codigo) { | ||
this.codigo = codigo; | ||
} | ||
|
||
/** | ||
* @return the descripcion | ||
*/ | ||
public String getDescripcion() { | ||
return descripcion; | ||
} | ||
|
||
/** | ||
* @param descripcion the descripcion to set | ||
*/ | ||
public void setDescripcion(String descripcion) { | ||
this.descripcion = descripcion; | ||
} | ||
|
||
/** | ||
* @return the nombre | ||
*/ | ||
public String getNombre() { | ||
return nombre; | ||
} | ||
|
||
/** | ||
* @param nombre the nombre to set | ||
*/ | ||
public void setNombre(String nombre) { | ||
this.nombre = nombre; | ||
} | ||
|
||
/** | ||
* @return the codigoEstandar | ||
*/ | ||
public String getCodigoEstandar() { | ||
return codigoEstandar; | ||
} | ||
|
||
/** | ||
* @param codigoEstandar the codigoEstandar to set | ||
*/ | ||
public void setCodigoEstandar(String codigoEstandar) { | ||
this.codigoEstandar = codigoEstandar; | ||
} | ||
|
||
} |
Oops, something went wrong.