EMSADM DDL identity to sequence 대응 완료
This commit is contained in:
@@ -11,6 +11,7 @@ import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import org.springframework.data.annotation.CreatedBy;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
|
||||
@@ -30,7 +31,20 @@ public class UserAthrRoleChgHistory extends AbstractEntity<String> implements Se
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
// @GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@GenericGenerator(
|
||||
name = "TB_APIMS_USER_ATHR_ROLE_CHG_H_GEN",
|
||||
strategy = "com.eactive.eai.rms.data.jpa.SchemaPrefixedSequenceGenerator",
|
||||
parameters = {
|
||||
@org.hibernate.annotations.Parameter(name = "sequence_name", value = "TB_APIMS_USER_ATHR_ROLE_CHG_H_SEQ"),
|
||||
@org.hibernate.annotations.Parameter(name = "initial_value", value = "1"),
|
||||
@org.hibernate.annotations.Parameter(name = "increment_size", value = "1")
|
||||
}
|
||||
)
|
||||
@GeneratedValue(
|
||||
strategy = GenerationType.SEQUENCE,
|
||||
generator = "TB_APIMS_USER_ATHR_ROLE_CHG_H_GEN"
|
||||
)
|
||||
@Column(name = "CHG_LOG_ID", unique = true, nullable = false)
|
||||
@Comment("사용자 정보 변경 로그 식별 ID")
|
||||
private int chgLogId;
|
||||
|
||||
@@ -11,6 +11,7 @@ import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.hibernate.annotations.Comment;
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
import org.springframework.data.annotation.CreatedDate;
|
||||
|
||||
import com.eactive.eai.data.entity.AbstractEntity;
|
||||
@@ -30,7 +31,20 @@ public class UserLoginHistory extends AbstractEntity<String> implements Serializ
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
// @GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||
@GenericGenerator(
|
||||
name = "TB_APIMS_LOIN_L_GEN",
|
||||
strategy = "com.eactive.eai.rms.data.jpa.SchemaPrefixedSequenceGenerator",
|
||||
parameters = {
|
||||
@org.hibernate.annotations.Parameter(name = "sequence_name", value = "TB_APIMS_LOIN_L_GEN_SEQ"),
|
||||
@org.hibernate.annotations.Parameter(name = "initial_value", value = "1"),
|
||||
@org.hibernate.annotations.Parameter(name = "increment_size", value = "1")
|
||||
}
|
||||
)
|
||||
@GeneratedValue(
|
||||
strategy = GenerationType.SEQUENCE,
|
||||
generator = "TB_APIMS_LOIN_L_GEN"
|
||||
)
|
||||
@Column(name="LOIN_LOG_ID", unique = true, nullable = false)
|
||||
@Comment("로그인 로그 식별자")
|
||||
private int loginLogId;
|
||||
|
||||
@@ -37,5 +37,4 @@ public class CustomRevisionEntity {
|
||||
@Column(name = "USERID")
|
||||
@Comment("변경자ID")
|
||||
private String userId;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user