当前位置: 首页>>代码示例>>Java>>正文


Java Where类代码示例

本文整理汇总了Java中org.hibernate.annotations.Where的典型用法代码示例。如果您正苦于以下问题:Java Where类的具体用法?Java Where怎么用?Java Where使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Where类属于org.hibernate.annotations包,在下文中一共展示了Where类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getAnnotations

import org.hibernate.annotations.Where; //导入依赖的package包/类
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'MeasurementOrFact'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:9,代码来源:MeasurementOrFact.java

示例2: getAnnotations

import org.hibernate.annotations.Where; //导入依赖的package包/类
@Override
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Identification'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
开发者ID:RBGKew,项目名称:powop,代码行数:9,代码来源:Identification.java

示例3: getAnnotations

import org.hibernate.annotations.Where; //导入依赖的package包/类
/**
 * @return the annotations
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Distribution'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
开发者ID:RBGKew,项目名称:powop,代码行数:12,代码来源:Distribution.java

示例4: getRoles

import org.hibernate.annotations.Where; //导入依赖的package包/类
@ManyToMany(fetch = FetchType.LAZY)
@JoinTable(name = "org_user_role_rel", 
		joinColumns = {@JoinColumn(name = "user_id")}, 
		inverseJoinColumns = {@JoinColumn(name = "role_id")})
@Where(clause="delete_flag=0")
@OrderBy("no")
public Set<Role> getRoles() {
	return roles;
}
 
开发者ID:xujeff,项目名称:tianti,代码行数:10,代码来源:User.java

示例5: getIncludeRef

import org.hibernate.annotations.Where; //导入依赖的package包/类
@Where(clause = RObjectReference.REFERENCE_TYPE + "= 7")
@OneToMany(mappedBy = RObjectReference.F_OWNER, orphanRemoval = true)
@ForeignKey(name = "none")
@Cascade({org.hibernate.annotations.CascadeType.ALL})
public Set<RObjectReference<RObjectTemplate>> getIncludeRef() {
    if (includeRef == null) {
        includeRef = new HashSet<>();
    }
    return includeRef;
}
 
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:11,代码来源:RObjectTemplate.java

示例6: getAnnotations

import org.hibernate.annotations.Where; //导入依赖的package包/类
/**
 * @return the annotations
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Description'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:12,代码来源:Description.java

示例7: getAnnotations

import org.hibernate.annotations.Where; //导入依赖的package包/类
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'TypeAndSpecimen'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:9,代码来源:TypeAndSpecimen.java

示例8: getAnnotations

import org.hibernate.annotations.Where; //导入依赖的package包/类
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'IdentificationKey'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:9,代码来源:IdentificationKey.java

示例9: getComments

import org.hibernate.annotations.Where; //导入依赖的package包/类
/**
 * @return the comments
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "commentPage_id")
@OrderBy("created DESC")
@Where(clause = "commentPage_type = 'IdentificationKey'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public List<Comment> getComments() {
	return comments;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:13,代码来源:IdentificationKey.java

示例10: getAnnotations

import org.hibernate.annotations.Where; //导入依赖的package包/类
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Place'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:9,代码来源:Place.java

示例11: getAnnotations

import org.hibernate.annotations.Where; //导入依赖的package包/类
/**
 * @return the annotations
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Reference'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:12,代码来源:Reference.java

示例12: getAnnotations

import org.hibernate.annotations.Where; //导入依赖的package包/类
/**
 * @return the annotations
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Identifier'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:12,代码来源:Identifier.java

示例13: getAnnotations

import org.hibernate.annotations.Where; //导入依赖的package包/类
/**
 * @return the annotations
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'Concept'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:12,代码来源:Concept.java

示例14: getComments

import org.hibernate.annotations.Where; //导入依赖的package包/类
/**
 * @return the comments
 */
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "commentPage_id")
@OrderBy("created DESC")
@Where(clause = "commentPage_type = 'Concept'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public List<Comment> getComments() {
	return comments;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:13,代码来源:Concept.java

示例15: getAnnotations

import org.hibernate.annotations.Where; //导入依赖的package包/类
@Override
@OneToMany(fetch = FetchType.LAZY, orphanRemoval = true)
@JoinColumn(name = "annotatedObjId")
@Where(clause = "annotatedObjType = 'PhylogeneticTree'")
@Cascade({ CascadeType.SAVE_UPDATE, CascadeType.MERGE, CascadeType.DELETE })
@JsonIgnore
public Set<Annotation> getAnnotations() {
	return annotations;
}
 
开发者ID:RBGKew,项目名称:eMonocot,代码行数:10,代码来源:PhylogeneticTree.java


注:本文中的org.hibernate.annotations.Where类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。