Jackson @JsonIgnorePropertiesはpossibleTargetを無視せず、ownerとlemfを無視します。リストを無視できます。プロパティを無視しているジャクソンライブラリ
@JsonIgnoreProperties({"owner","lemf"," possibleTargets"})
@Entity
public class Warrant extends Nameable {
@LazyCollection(LazyCollectionOption.FALSE)
@OneToMany(mappedBy ="warrant",targetEntity = com.endersys.lims.model.Target.class)
private List<Target> possibleTargets;
出力:
[{"status":"SCHEDULED","startDate":1320962400000,"endDate":1320962400000,"caseId":"1","possibleTargets":[],"name":"warrant_1","description":"decription","identity":"warrant_1","version":1,"systemId":1,"active":true}]
"possibleTargets"の先頭に空白があります –