當前位置: 首頁>>代碼示例>>Java>>正文


Java GenerationType.SEQUENCE屬性代碼示例

本文整理匯總了Java中javax.persistence.GenerationType.SEQUENCE屬性的典型用法代碼示例。如果您正苦於以下問題:Java GenerationType.SEQUENCE屬性的具體用法?Java GenerationType.SEQUENCE怎麽用?Java GenerationType.SEQUENCE使用的例子?那麽, 這裏精選的屬性代碼示例或許可以為您提供幫助。您也可以進一步了解該屬性所在javax.persistence.GenerationType的用法示例。


在下文中一共展示了GenerationType.SEQUENCE屬性的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getId

@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,代碼行數:7,代碼來源:OracleLongEntity.java

示例2: getNumber

/**
 * 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,代碼行數:11,代碼來源:Request.java

示例3: getSampledFeaturesId

@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,代碼行數:7,代碼來源:SampledFeatures.java

示例4: getRelatedResourceId

@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,代碼行數:7,代碼來源:RelatedResources.java

示例5: getLogDateId

@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,代碼行數:7,代碼來源:LogDate.java

示例6: getContributorId

@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,代碼行數:7,代碼來源:Contributors.java

示例7: getMaterialTypesId

@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,代碼行數:7,代碼來源:MaterialTypes.java

示例8: getResourceTypeId

@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,代碼行數:7,代碼來源:ResourceTypes.java

示例9: getCurationId

@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,代碼行數:7,代碼來源:CurationDetails.java

示例10: getId

@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,代碼行數:7,代碼來源:Prefix.java

示例11: getMethodId

@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,代碼行數:7,代碼來源:Method.java

示例12: getRegistrantid

@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,代碼行數:7,代碼來源:Registrant.java

示例13: getClassificationsId

@Id
@Column(name = "classifications_id", unique = true, nullable = false)
@SequenceGenerator(name="classifications_id_seq",schema="version30",sequenceName="classifications_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="classifications_id_seq")
public int getClassificationsId() {
	return this.classificationsId;
}
 
開發者ID:AuScope,項目名稱:igsn30,代碼行數:7,代碼來源:Classifications.java

示例14: getResourceDateId

@Id
@Column(name = "resource_date_id", unique = true, nullable = false)
@SequenceGenerator(name="resource_date_id_seq",schema="version30",sequenceName="resource_date_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="resource_date_id_seq")
public int getResourceDateId() {
	return this.resourceDateId;
}
 
開發者ID:AuScope,項目名稱:igsn30,代碼行數:7,代碼來源:ResourceDate.java

示例15: getAlternateIdentifiersId

@Id
@Column(name = "alternate_identifiers_id", unique = true, nullable = false)
@SequenceGenerator(name="alternate_identifiers_id_seq",schema="version30",sequenceName="alternate_identifiers_id_seq", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE,generator="alternate_identifiers_id_seq")
public int getAlternateIdentifiersId() {
	return this.alternateIdentifiersId;
}
 
開發者ID:AuScope,項目名稱:igsn30,代碼行數:7,代碼來源:AlternateIdentifiers.java


注:本文中的javax.persistence.GenerationType.SEQUENCE屬性示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。