Listo lo de los sobregiros, falta implementarlos
This commit is contained in:
@@ -2,6 +2,7 @@ package entities;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
@@ -43,6 +44,7 @@ public class LineaSobregiro implements Serializable {
|
||||
@PrePersist
|
||||
public void onPersist() {
|
||||
this.insertedAt = LocalDateTime.now();
|
||||
this.sobregiro = 0;
|
||||
}
|
||||
|
||||
public Integer getId() {
|
||||
@@ -70,6 +72,8 @@ public class LineaSobregiro implements Serializable {
|
||||
}
|
||||
|
||||
public List<CuentaCorriente> getCuentaCorrienteList() {
|
||||
if(cuentaCorrienteList == null)
|
||||
cuentaCorrienteList = new ArrayList<>();
|
||||
return cuentaCorrienteList;
|
||||
}
|
||||
|
||||
@@ -84,6 +88,8 @@ public class LineaSobregiro implements Serializable {
|
||||
}
|
||||
|
||||
public List<TarjetaCredito> getTarjetaCreditoList() {
|
||||
if(tarjetaCreditoList == null)
|
||||
tarjetaCreditoList = new ArrayList<>();
|
||||
return tarjetaCreditoList;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user