当前位置: 首页>>代码示例>>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;未经允许,请勿转载。