fix: SequenceGenerator 설정 적용

dev
Lim Jonguk 3 years ago
parent c757053a1a
commit 48999de67a

@ -12,6 +12,11 @@ import java.util.Set;
@Schema(name = "MinSimsaUser680", description = "민원심사사용자매핑")
@Table(name = "min_simsa_user680", schema = "", catalog = "")
@Entity
@SequenceGenerator(
name = "SIMSA_USER680_SEQ_GEN",
sequenceName = "MIN_SIMSA_USER680_SEQ",
allocationSize = 1 // default = 50 이므로 반드시 setting 필요
)
@Getter
@NoArgsConstructor
@AllArgsConstructor
@ -20,7 +25,7 @@ public class MinSimsaUser680 implements Serializable {
private static final long SerialVersionUID = 1L;
@Id
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = " MIN_SIMSA_USER680_SEQ")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SIMSA_USER680_SEQ_GEN")
@Schema(required = true, title = "민원심사사용자매핑코드", example = " ", description = "Input Description...")
@Column(name = "msu_code", nullable = false, length = 10)
private Long msuCode;

Loading…
Cancel
Save