本文整理汇总了Java中org.codehaus.jackson.annotate.JsonBackReference类的典型用法代码示例。如果您正苦于以下问题:Java JsonBackReference类的具体用法?Java JsonBackReference怎么用?Java JsonBackReference使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
JsonBackReference类属于org.codehaus.jackson.annotate包,在下文中一共展示了JsonBackReference类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: findReferenceType
import org.codehaus.jackson.annotate.JsonBackReference; //导入依赖的package包/类
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;
}
开发者ID:zhangjianying,项目名称:12306-android-Decompile,代码行数:11,代码来源:JacksonAnnotationIntrospector.java
示例2: findDeserializablePropertyName
import org.codehaus.jackson.annotate.JsonBackReference; //导入依赖的package包/类
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;
}
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:10,代码来源:JacksonAnnotationIntrospector.java
示例3: findSettablePropertyName
import org.codehaus.jackson.annotate.JsonBackReference; //导入依赖的package包/类
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;
}
开发者ID:isnuryusuf,项目名称:ingress-indonesia-dev,代码行数:13,代码来源:JacksonAnnotationIntrospector.java
示例4: getCatalogs
import org.codehaus.jackson.annotate.JsonBackReference; //导入依赖的package包/类
@XmlTransient
@JsonBackReference("materialType-type")
@OneToMany(fetch = FetchType.LAZY, mappedBy = "materialType")
public Set<Catalog> getCatalogs() {
return this.catalogs;
}
开发者ID:PacktPublishing,项目名称:Spring-MVC-Blueprints,代码行数:7,代码来源:MaterialType.java
示例5: getCatalogs
import org.codehaus.jackson.annotate.JsonBackReference; //导入依赖的package包/类
@JsonBackReference("uom-type")
@OneToMany(fetch = FetchType.LAZY, mappedBy = "uom")
public Set<Catalog> getCatalogs() {
return this.catalogs;
}
开发者ID:PacktPublishing,项目名称:Spring-MVC-Blueprints,代码行数:6,代码来源:Uom.java
示例6: getMaterialType
import org.codehaus.jackson.annotate.JsonBackReference; //导入依赖的package包/类
@JsonBackReference("materialType-type")
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "tid", nullable = false)
public MaterialType getMaterialType() {
return this.materialType;
}
开发者ID:PacktPublishing,项目名称:Spring-MVC-Blueprints,代码行数:7,代码来源:Catalog.java
示例7: getUom
import org.codehaus.jackson.annotate.JsonBackReference; //导入依赖的package包/类
@JsonBackReference("uom-type")
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "uomId", nullable = false)
public Uom getUom() {
return this.uom;
}
开发者ID:PacktPublishing,项目名称:Spring-MVC-Blueprints,代码行数:7,代码来源:Catalog.java
示例8: getJob
import org.codehaus.jackson.annotate.JsonBackReference; //导入依赖的package包/类
/**
* @return the job
*/
@JsonBackReference("job-event")
public JobEntity getJob() {
return this.job;
}
开发者ID:eurekaclinical,项目名称:eureka,代码行数:8,代码来源:JobEventEntity.java
示例9: getParent
import org.codehaus.jackson.annotate.JsonBackReference; //导入依赖的package包/类
@XmlTransient
@JsonBackReference("parent")
@Override
public TreeNode getParent() {
return parent;
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:7,代码来源:TreeNode.java
示例10: setParent
import org.codehaus.jackson.annotate.JsonBackReference; //导入依赖的package包/类
@JsonIgnore
@JsonBackReference("parent")
public void setParent(TreeNode parent) {
this.parent = parent;
this.parent.children.add(this);
}
开发者ID:U-QASAR,项目名称:u-qasar.platform,代码行数:7,代码来源:TreeNode.java
示例11: getAutogear
import org.codehaus.jackson.annotate.JsonBackReference; //导入依赖的package包/类
@JsonBackReference
public Autogear getAutogear() {
return this.autogear;
}
开发者ID:furkanzumrut,项目名称:CarSalesWebService,代码行数:5,代码来源:Auto.java
注:本文中的org.codehaus.jackson.annotate.JsonBackReference类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论