compass 开发小计

>>一对多配置

 @ManyToMany(targetEntity = AutoType.class, cascade = {CascadeType.REFRESH}, fetch = FetchType.EAGER)
    @JoinTable(name = "T_INFO_BUS_TYPE", joinColumns = {@JoinColumn(name = "BUS_ORDER_ID", referencedColumnName = "BUS_ORDER_ID")}, inverseJoinColumns = {@JoinColumn(name = "BUSTYPE_ID", referencedColumnName = "BUSTYPE_ID")})
    @SearchableComponent
    private List<AutoType> autoTypeList;

 

>>普通属性配置

@Column(name = "PUBLIC_ACILITIES_ID_S")
    @SearchableProperty
    private String publicAcilitiesIdS;

你可能感兴趣的:(compass)