本文整理匯總了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; }
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}