Код: Выделить всё
@Entity
@FilterDef(name = "hospitalFilter", parameters = @ParamDef(name = "hospitalId", type = "string"))
@Filter(name = "hospitalFilter", condition = "hospital_id = :hospitalId")
public class PatientEntity {
@Id
private Long patientId;
@Column(name = "hospital_id")
private String hospitalId;
// other fields
}
может помочь, или может предоставить git repo
Подробнее здесь: https://stackoverflow.com/questions/796 ... -filters-w