Selaa lähdekoodia

Fix varchar definition for new entity

tags/v0.10.5
Kristijan Mitrovic 4 vuotta sitten
vanhempi
commit
4c3d923030
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. +3
    -3
      bubble-server/src/main/java/bubble/model/bill/AccountPaymentArchived.java

+ 3
- 3
bubble-server/src/main/java/bubble/model/bill/AccountPaymentArchived.java Näytä tiedosto

@@ -45,7 +45,7 @@ public class AccountPaymentArchived extends IdentifiableBase {

@ECSearchable @ECField(index=20, type=EntityFieldType.opaque_string)
@Type(type=ENCRYPTED_STRING)
@Column(updatable=false, nullable=false)
@Column(updatable=false, nullable=false, columnDefinition="varchar") // no length limit
@JsonIgnore @Getter @Setter private String billsJson;

@Transient public Bill[] getBills() { return json(billsJson, Bill[].class); }
@@ -53,7 +53,7 @@ public class AccountPaymentArchived extends IdentifiableBase {

@ECSearchable @ECField(index=30)
@Type(type=ENCRYPTED_STRING)
@Column(updatable=false, nullable=false)
@Column(updatable=false, nullable=false, columnDefinition="varchar") // no length limit
@JsonIgnore @Getter @Setter private String paymentsJson;

@Transient public AccountPayment[] getPayments() { return json(paymentsJson, AccountPayment[].class); }
@@ -63,7 +63,7 @@ public class AccountPaymentArchived extends IdentifiableBase {

@ECSearchable @ECField(index=40)
@Type(type=ENCRYPTED_STRING)
@Column(updatable=false, nullable=false)
@Column(updatable=false, nullable=false, columnDefinition="varchar") // no length limit
@JsonIgnore @Getter @Setter private String paymentMethodsJson;

@Transient public AccountPaymentMethod[] getPaymentMethods() {


Ladataan…
Peruuta
Tallenna