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


Java GenerationType.TABLE屬性代碼示例

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


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

示例1: getId

@Id @GeneratedValue(strategy = GenerationType.TABLE, generator = "dog")
@TableGenerator(
	name = "dog",
	table = "sequences",
	pkColumnName = "key",
	pkColumnValue = "dog",
	valueColumnName = "seed"
)
public Long getId() { return id; }
 
開發者ID:hibernate,項目名稱:hibernate-ogm-redis,代碼行數:9,代碼來源:Dog.java

示例2: getVendorPartNumber

@TableGenerator(
    name="vendorPartGen",
    table="PERSISTENCE_ORDER_SEQUENCE_GENERATOR",
    pkColumnName="GEN_KEY",
    valueColumnName="GEN_VALUE",
    pkColumnValue="VENDOR_PART_ID",
    allocationSize=10)
@Id
@GeneratedValue(strategy=GenerationType.TABLE, generator="vendorPartGen")
public Long getVendorPartNumber() {
    return vendorPartNumber;
}
 
開發者ID:wwu-pi,項目名稱:tap17-muggl-javaee,代碼行數:12,代碼來源:VendorPart.java

示例3: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_expedient_tipus_seqdefany")
@TableGenerator(name="gen_expedient_tipus_seqdefany", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:SequenciaDefaultAny.java

示例4: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_termini_iniciat")
@TableGenerator(name="gen_termini_iniciat", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:TerminiIniciat.java

示例5: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_registre")
@TableGenerator(name="gen_registre", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:Registre.java

示例6: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_persona")
@TableGenerator(name="gen_persona", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return this.id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:Persona.java

示例7: getId

@Id
@Column(name = "ID", unique = true, nullable = false, length = 19)
@GeneratedValue(strategy = GenerationType.TABLE, generator = "table")
@GenericGenerator(name = "table", strategy = "org.hibernate.id.MultipleHiLoPerTableGenerator", parameters = {
		@Parameter(name = "max_lo", value = "5") })//增長級別為5,可根據並發級別適當調整
public Long getId() {
	return this.id;
}
 
開發者ID:summerDp,項目名稱:dpCms,代碼行數:8,代碼來源:Menu.java

示例8: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_expedient")
@TableGenerator(name="gen_expedient", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:ExpedientHelium.java

示例9: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_tasca")
@TableGenerator(name="gen_tasca", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:Tasca.java

示例10: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_termini")
@TableGenerator(name="gen_termini", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:Termini.java

示例11: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_notif_electronica")
@TableGenerator(name="gen_notif_electronica", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:NotifElectronica.java

示例12: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_formext")
@TableGenerator(name="gen_formext", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:FormulariExtern.java

示例13: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_expedient_tipus")
@TableGenerator(name="gen_expedient_tipus", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:ExpedientTipus.java

示例14: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_map_sistra")
@TableGenerator(name="gen_map_sistra", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:MapeigSistra.java

示例15: getId

@Id
@GeneratedValue(strategy = GenerationType.TABLE, generator="gen_camp")
@TableGenerator(name="gen_camp", table="hel_idgen", pkColumnName="taula", valueColumnName="valor")
@Column(name="id")
public Long getId() {
	return id;
}
 
開發者ID:GovernIB,項目名稱:helium,代碼行數:7,代碼來源:CampAgrupacio.java


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