Listo lo de los sobregiros, falta implementarlos

This commit is contained in:
Daniel Cortés
2019-07-22 13:15:37 -04:00
parent 5bdb500677
commit d70c3bc435
10 changed files with 326 additions and 32 deletions

View File

@@ -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;
}