public AnnotationIntrospector.ReferenceProperty findReferenceType(AnnotatedMember paramAnnotatedMember) { JsonManagedReference localJsonManagedReference = (JsonManagedReference)paramAnnotatedMember.getAnnotation(JsonManagedReference.class); if (localJsonManagedReference != null) return AnnotationIntrospector.ReferenceProperty.managed(localJsonManagedReference.value()); JsonBackReference localJsonBackReference = (JsonBackReference)paramAnnotatedMember.getAnnotation(JsonBackReference.class); if (localJsonBackReference != null) return AnnotationIntrospector.ReferenceProperty.back(localJsonBackReference.value()); return null; }
public String findDeserializablePropertyName(AnnotatedField paramAnnotatedField) { JsonProperty localJsonProperty = (JsonProperty)paramAnnotatedField.getAnnotation(JsonProperty.class); if (localJsonProperty != null) return localJsonProperty.value(); if ((paramAnnotatedField.hasAnnotation(JsonDeserialize.class)) || (paramAnnotatedField.hasAnnotation(JsonView.class)) || (paramAnnotatedField.hasAnnotation(JsonBackReference.class)) || (paramAnnotatedField.hasAnnotation(JsonManagedReference.class))) return ""; return null; }
public String findSettablePropertyName(AnnotatedMethod paramAnnotatedMethod) { JsonProperty localJsonProperty = (JsonProperty)paramAnnotatedMethod.getAnnotation(JsonProperty.class); if (localJsonProperty != null) return localJsonProperty.value(); JsonSetter localJsonSetter = (JsonSetter)paramAnnotatedMethod.getAnnotation(JsonSetter.class); if (localJsonSetter != null) return localJsonSetter.value(); if ((paramAnnotatedMethod.hasAnnotation(JsonDeserialize.class)) || (paramAnnotatedMethod.hasAnnotation(JsonView.class)) || (paramAnnotatedMethod.hasAnnotation(JsonBackReference.class)) || (paramAnnotatedMethod.hasAnnotation(JsonManagedReference.class))) return ""; return null; }
@XmlTransient @JsonBackReference("materialType-type") @OneToMany(fetch = FetchType.LAZY, mappedBy = "materialType") public Set<Catalog> getCatalogs() { return this.catalogs; }
@JsonBackReference("uom-type") @OneToMany(fetch = FetchType.LAZY, mappedBy = "uom") public Set<Catalog> getCatalogs() { return this.catalogs; }
@JsonBackReference("materialType-type") @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "tid", nullable = false) public MaterialType getMaterialType() { return this.materialType; }
@JsonBackReference("uom-type") @ManyToOne(fetch = FetchType.LAZY) @JoinColumn(name = "uomId", nullable = false) public Uom getUom() { return this.uom; }
/** * @return the job */ @JsonBackReference("job-event") public JobEntity getJob() { return this.job; }
@XmlTransient @JsonBackReference("parent") @Override public TreeNode getParent() { return parent; }
@JsonIgnore @JsonBackReference("parent") public void setParent(TreeNode parent) { this.parent = parent; this.parent.children.add(this); }
@JsonBackReference public Autogear getAutogear() { return this.autogear; }