0
過濾Objectify中的列表如何過濾Objectify中實體的列表,該列表具有參考其他實體的列表。該列表應根據Ref實體中的字符串字段進行過濾。使用Ref
公共類AccountEntity延伸BaseEntity {
@Index
private String accountName;
private String accountNo;
private String description;
private Integer displayOrderNo;
private Boolean contra = false;
private AccountingAccountType accountType;
@Index
private Ref<AccountGroupEntity> accountGroup;
@Ignore
private List<AccountEntryEntity> accountLedgerEntries;
public AccountEntity() {
}
請用代碼解釋。 –
非規範化是一種基本的數據建模概念,您應該理解 - 它在堆棧溢出方面很好。這個答案是非常正確的,併爲你進一步的研究提供了大量的鉤子。 – stickfigure