Quellcode durchsuchen

fix bill search

tags/v0.8.0
Jonathan Cobb vor 5 Jahren
Ursprung
Commit
39d2c7a129
1 geänderte Dateien mit 5 neuen und 4 gelöschten Zeilen
  1. +5
    -4
      bubble-server/src/main/java/bubble/model/bill/Bill.java

+ 5
- 4
bubble-server/src/main/java/bubble/model/bill/Bill.java Datei anzeigen

@@ -16,26 +16,27 @@ import java.util.List;

import static org.cobbzilla.wizard.model.crypto.EncryptedTypes.ENCRYPTED_LONG;
import static org.cobbzilla.wizard.model.crypto.EncryptedTypes.ENC_LONG;
import static org.cobbzilla.wizard.model.entityconfig.annotations.ECForeignKeySearchDepth.shallow;

@ECType(root=true) @ECTypeCreate(method="DISABLED")
@ECTypeURIs(listFields={"name", "status", "type", "quantity", "price", "periodStart"})
@ECTypeURIs(listFields={"account", "plan", "periodLabel", "total", "status"})
@Entity @NoArgsConstructor @Accessors(chain=true)
@ECIndexes({
@ECIndex(unique=true, of={"account", "accountPlan", "type", "periodStart"})
})
public class Bill extends IdentifiableBase implements HasAccountNoName {

@ECSearchable @ECField(index=10)
@ECSearchable(fkDepth=shallow) @ECField(index=10)
@ECForeignKey(entity=Account.class)
@Column(nullable=false, updatable=false, length=UUID_MAXLEN)
@Getter @Setter private String account;

@ECSearchable @ECField(index=20)
@ECSearchable(fkDepth=shallow) @ECField(index=20)
@ECForeignKey(entity=BubblePlan.class)
@Column(nullable=false, updatable=false, length=UUID_MAXLEN)
@Getter @Setter private String plan;

@ECSearchable @ECField(index=30)
@ECSearchable(fkDepth=shallow) @ECField(index=30)
@ECForeignKey(entity=AccountPlan.class)
@Column(nullable=false, updatable=false, length=UUID_MAXLEN)
@Getter @Setter private String accountPlan;


Laden…
Abbrechen
Speichern