0
我有本地化的實體,我想實現一個語言過濾器。實體檢索過濾器
@Entity
@RooJavaBean
@RooToString
@RooJpaEntity
@RooJpaActiveRecord
public class MyEntityI18n {
@Column(columnDefinition = "text")
@Basic(fetch=FetchType.LAZY)
private String description;
@NotNull
@ManyToOne(targetEntity = MyEntity.class)
private MyEntity backedEntity;
@NotNull
private String languageCode;
@NotNull
@Length(min=3, max=60)
private String name;
}
有沒有一種方法來設置一個始終存在過濾器,只要將正在檢索實體的語言代碼字段中添加附加條件?