Jpa主键生成策略修正
This commit is contained in:
parent
b3538d2b91
commit
7e3fedc64a
@ -3,10 +3,7 @@ package com.xhpc.evcs.domain;
|
|||||||
import lombok.Getter;
|
import lombok.Getter;
|
||||||
import lombok.Setter;
|
import lombok.Setter;
|
||||||
|
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.*;
|
||||||
import javax.persistence.GeneratedValue;
|
|
||||||
import javax.persistence.Id;
|
|
||||||
import javax.persistence.Table;
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
@Getter
|
@Getter
|
||||||
@ -19,7 +16,7 @@ public class AuthSecretToken {
|
|||||||
public final static String SECRET_TOKEN_TYPE_OUT = "OUT";
|
public final static String SECRET_TOKEN_TYPE_OUT = "OUT";
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue()
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private Integer id;
|
private Integer id;
|
||||||
|
|
||||||
private String operatorId;
|
private String operatorId;
|
||||||
|
|||||||
@ -10,7 +10,7 @@ public class EtOrderMapping extends BaseEntity {
|
|||||||
|
|
||||||
@Id
|
@Id
|
||||||
@Column(name = "id", nullable = false)
|
@Column(name = "id", nullable = false)
|
||||||
@GeneratedValue
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
@Column(name = "xh_order_no", nullable = false, length = 50)
|
@Column(name = "xh_order_no", nullable = false, length = 50)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user