Skip to content

Commit a2bc3c1

Browse files
committed
Updated doc
1 parent b2f82c0 commit a2bc3c1

File tree

5 files changed

+4
-4
lines changed

5 files changed

+4
-4
lines changed

doc/youtube/playlist.png

527 KB
Loading

src/main/java/com/api/rest/microelectronica/entities/ComponenteCapacitorElectroliticoEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class ComponenteCapacitorElectroliticoEntity {
2525
@Column(name = "id")
2626
private int id;
2727

28-
@Column(name = "id_componente")
28+
@Column(name = "id_componente",unique=true)
2929
private int idComponente;
3030

3131
@Column(name = "tipo")

src/main/java/com/api/rest/microelectronica/entities/ComponenteDetalleEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class ComponenteDetalleEntity {
2525
@Column(name="id")
2626
private int id;
2727

28-
@Column(name="id_componente")
28+
@Column(name="id_componente", unique=true)
2929
private int idComponente;
3030

3131
@Column(name="hoja_de_datos")

src/main/java/com/api/rest/microelectronica/entities/ComponenteTransistorBipolarEntity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class ComponenteTransistorBipolarEntity {
2525
@Column(name="id")
2626
private int id;
2727

28-
@Column(name="id_componente")
28+
@Column(name="id_componente",unique=true)
2929
private int idComponente;
3030

3131
@Column(name="tipo")

src/main/java/com/api/rest/microelectronica/services/ComponenteDetalleService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ public Page<ComponenteDetalleEntity> findByVoltajeMinEntrada(String voltajeMinEn
308308
public Page<ComponenteDetalleEntity> findByVoltajeMaxEntrada(String voltajeMaxEntrada, Pageable pageable) {
309309

310310
try {
311-
return iComponenteDetalleRepository.findByVoltajeMinEntrada(voltajeMaxEntrada, pageable);
311+
return iComponenteDetalleRepository.findByVoltajeMaxEntrada(voltajeMaxEntrada, pageable);
312312
} catch (Exception e) {
313313
logger.error("ERROR findByVoltajeMaxEntrada : NO SE HA ENCONTRADO EL LISTADO DE COMPONENTES CON EL VOLTAJE MAXIMO DE ENTRADA SOLICITADO. CAUSADO POR "+e);
314314
throw new ComponenteDetalleNotFoundException("NO SE PUDO ENCONTRAR EL LISTADO DE COMPONENTES CON EL VOLTAJE MAXIMO DE ENTRADA SOLICITADO "+e);

0 commit comments

Comments
 (0)