• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java JsonBackReference类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Provider类代码示例发布时间:2022-05-22
下一篇:
Java ProxyMethodInvocation类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap