Jackson @JsonIgnoreProperties ne pas ignorer possibleTargets, mais ignorant propriétaire et lemf .Comment je peux ignorer les listes.Bibliothèque Jackson ignorant les propriétés
@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;
Sortie:
[{"status":"SCHEDULED","startDate":1320962400000,"endDate":1320962400000,"caseId":"1","possibleTargets":[],"name":"warrant_1","description":"decription","identity":"warrant_1","version":1,"systemId":1,"active":true}]
"possibleTargets" a un espace sur son début –