本文整理汇总了Java中javax.persistence.GenerationType.IDENTITY属性的典型用法代码示例。如果您正苦于以下问题:Java GenerationType.IDENTITY属性的具体用法?Java GenerationType.IDENTITY怎么用?Java GenerationType.IDENTITY使用的例子?那么, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在类javax.persistence.GenerationType
的用法示例。
在下文中一共展示了GenerationType.IDENTITY属性的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getId
@Access(AccessType.PROPERTY)
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
public long getId() {
return super.getId();
}
示例2: getId
@Override
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Access(value = AccessType.PROPERTY)
@Column(name = ID_COLUMN_NAME, nullable = false)
public Long getId() {
return id;
}
示例3: getId
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "harvest_specimen_id", nullable = false)
@Access(value = AccessType.PROPERTY)
@Override
public Long getId() {
return id;
}
示例4: getId
@Override
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Access(value = AccessType.PROPERTY)
@Column(name = "harvest_permit_area_partner_id", nullable = false)
public Long getId() {
return id;
}
示例5: getId
@Override
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Access(value = AccessType.PROPERTY)
@Column(name = "harvest_permit_area_event_id", nullable = false)
public Long getId() {
return id;
}
示例6: getId
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "harvest_report_state_history_id", nullable = false)
@Access(value = AccessType.PROPERTY)
@Override
public Long getId() {
return id;
}
示例7: getId
@Override
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Access(value = AccessType.PROPERTY)
@Column(name = ID_COLUMN_NAME, nullable = false)
public Long getId() {
return this.id;
}
示例8: getId
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = ID_COLUMN_NAME, nullable = false)
@Access(value = AccessType.PROPERTY)
@Override
public Long getId() {
return id;
}
示例9: getId
@Override
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Access(value = AccessType.PROPERTY)
@Column(name = "message_id", nullable = false)
public Long getId() {
return id;
}
示例10: getBookID
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "bookID", length = 11, nullable = false, unique = true)
public int getBookID() {
return bookID;
}
示例11: getId
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() {
return id;
}
示例12: getId
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Integer getId() {
return id;
}
示例13: getId
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
public Long getId() {
return id;
}
示例14: getUserRoleId
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "user_role_id", unique = true, nullable = false)
public Integer getUserRoleId() {
return userRoleId;
}
示例15: getId
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column( name="ID" )
public Integer getId() {
return id;
}