|
@ -19,13 +19,13 @@ public abstract class IntegerIdentityEntity implements Serializable {
|
|
|
|
|
|
@Id
|
|
|
//==========mysql 环境 id策略======================================================
|
|
|
/* @GeneratedValue(generator = "generator")
|
|
|
@GeneratedValue(generator = "generator")
|
|
|
@GenericGenerator(name = "generator", strategy = "identity")
|
|
|
@Column(name = "id", unique = true, nullable = false)*/
|
|
|
@Column(name = "id", unique = true, nullable = false)
|
|
|
//==========mysql 环境 id策略 end======================================================
|
|
|
|
|
|
//==========Oracle 环境id策略 =========================================================
|
|
|
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="id_generated")
|
|
|
/* @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="id_generated")*/
|
|
|
//==========Oracle 环境id策略 =========================================================
|
|
|
public Integer getId() {
|
|
|
return id;
|