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