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


Java SequenceGenerator类代码示例

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


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

示例1: getEntityId

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Column(name = DbColumnNames.ENTITY_ID)
@DocumentId(name = DbFieldNames.ENTITY_ID)
@GeneratedValue(generator = DbSequenceNames.RESOURCE_ENTITY_ID, strategy = GenerationType.SEQUENCE)
@Id
@Nonnegative
@Nullable
@Override
@SequenceGenerator(allocationSize = 1, name = DbSequenceNames.RESOURCE_ENTITY_ID, sequenceName = DbSequenceNames.RESOURCE_ENTITY_ID)
@SortableField(forField = DbColumnNames.ENTITY_ID)
public Long getEntityId() {
    return super.getEntityId();
}
 
开发者ID:esacinc,项目名称:sdcct,代码行数:13,代码来源:SdcctResourceImpl.java

示例2: getSequenceGenerator

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
private Annotation getSequenceGenerator(List<Element> elementsForProperty, XMLContext.Default defaults) {
	for ( Element element : elementsForProperty ) {
		Element subelement = element != null ? element.element( annotationToXml.get( SequenceGenerator.class ) ) : null;
		if ( subelement != null ) {
			return buildSequenceGeneratorAnnotation( subelement );
		}
	}
	if ( elementsForProperty.size() == 0 && defaults.canUseJavaAnnotations() ) {
		return getPhysicalAnnotation( SequenceGenerator.class );
	}
	else {
		return null;
	}
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:15,代码来源:JPAOverriddenAnnotationReader.java

示例3: buildSequenceGeneratorAnnotation

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
public static SequenceGenerator buildSequenceGeneratorAnnotation(Element element) {
	if ( element != null ) {
		AnnotationDescriptor ad = new AnnotationDescriptor( SequenceGenerator.class );
		copyStringAttribute( ad, element, "name", false );
		copyStringAttribute( ad, element, "sequence-name", false );
		copyIntegerAttribute( ad, element, "initial-value" );
		copyIntegerAttribute( ad, element, "allocation-size" );
		return AnnotationFactory.create( ad );
	}
	else {
		return null;
	}
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:JPAOverriddenAnnotationReader.java

示例4: getId

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Id
@SequenceGenerator(name = "ID_SEQ")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "ID_SEQ")
@Column(name = "ID", nullable = false)
public Long getId() {
	return id;
}
 
开发者ID:xujeff,项目名称:tianti,代码行数:8,代码来源:OracleLongEntity.java

示例5: getNumber

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
/**
 * The system unique (internal) number of the request.
 * 
 * @return Returns the number.
 */
@Column(nullable = false, unique = true, name="request_nr")
@SequenceGenerator(name = "seqRequestNumber", sequenceName = "seqRequestNumber")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "seqRequestNumber")
public String getNumber() {
    return this.number;
}
 
开发者ID:salimvanak,项目名称:myWMS,代码行数:12,代码来源:Request.java

示例6: getSampledFeaturesId

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Id
@Column(name = "sampled_features_id", unique = true, nullable = false)
@SequenceGenerator(name="sampled_features_id_seq",schema="version30",sequenceName="sampled_features_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="sampled_features_id_seq")
public int getSampledFeaturesId() {
	return this.sampledFeaturesId;
}
 
开发者ID:AuScope,项目名称:igsn30,代码行数:8,代码来源:SampledFeatures.java

示例7: getRelatedResourceId

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Id
@Column(name = "related_resource_id", unique = true, nullable = false)
@SequenceGenerator(name="related_resource_id_seq",schema="version30",sequenceName="related_resource_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="related_resource_id_seq")
public int getRelatedResourceId() {
	return this.relatedResourceId;
}
 
开发者ID:AuScope,项目名称:igsn30,代码行数:8,代码来源:RelatedResources.java

示例8: getLogDateId

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Id
@Column(name = "log_date_id", unique = true, nullable = false)
@SequenceGenerator(name="log_date_id_seq",schema="version30",sequenceName="log_date_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="log_date_id_seq")
public int getLogDateId() {
	return this.logDateId;
}
 
开发者ID:AuScope,项目名称:igsn30,代码行数:8,代码来源:LogDate.java

示例9: getContributorId

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Id
@Column(name = "contributor_id", unique = true, nullable = false)
@SequenceGenerator(name="contributor_id_seq",schema="version30",sequenceName="contributor_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="contributor_id_seq")
public int getContributorId() {
	return this.contributorId;
}
 
开发者ID:AuScope,项目名称:igsn30,代码行数:8,代码来源:Contributors.java

示例10: getMaterialTypesId

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Id
@Column(name = "material_types_id", unique = true, nullable = false)
@SequenceGenerator(name="material_types_id_seq",schema="version30",sequenceName="material_types_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="material_types_id_seq")
public int getMaterialTypesId() {
	return this.materialTypesId;
}
 
开发者ID:AuScope,项目名称:igsn30,代码行数:8,代码来源:MaterialTypes.java

示例11: getResourceTypeId

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Id
@Column(name = "resource_type_id", unique = true, nullable = false)
@SequenceGenerator(name="resource_type_id_seq",schema="version30",sequenceName="resource_type_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="resource_type_id_seq")
public int getResourceTypeId() {
	return this.resourceTypeId;
}
 
开发者ID:AuScope,项目名称:igsn30,代码行数:8,代码来源:ResourceTypes.java

示例12: getCurationId

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Id
@Column(name = "curation_id", unique = true, nullable = false)
@SequenceGenerator(name="curation_id_seq",schema="version30",sequenceName="curation_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="curation_id_seq")
public int getCurationId() {
	return this.curationId;
}
 
开发者ID:AuScope,项目名称:igsn30,代码行数:8,代码来源:CurationDetails.java

示例13: getId

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Id
@Column(name = "id", unique = true, nullable = false)
@SequenceGenerator(name="prefix_id_seq",schema="version30",sequenceName="prefix_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="prefix_id_seq")
public int getId() {
	return this.id;
}
 
开发者ID:AuScope,项目名称:igsn30,代码行数:8,代码来源:Prefix.java

示例14: getMethodId

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Id
@Column(name = "method_id", unique = true, nullable = false)
@SequenceGenerator(name="method_id_seq",schema="version30",sequenceName="method_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="method_id_seq")
public int getMethodId() {
	return this.methodId;
}
 
开发者ID:AuScope,项目名称:igsn30,代码行数:8,代码来源:Method.java

示例15: getRegistrantid

import javax.persistence.SequenceGenerator; //导入依赖的package包/类
@Id
@Column(name = "registrantid", unique = true, nullable = false)
@SequenceGenerator(name="registrant_registrantid_seq",schema="version30",sequenceName="registrant_registrantid_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="registrant_registrantid_seq")
public int getRegistrantid() {
	return this.registrantid;
}
 
开发者ID:AuScope,项目名称:igsn30,代码行数:8,代码来源:Registrant.java


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