fix: 사용자 엔터티 정의

dev
Lim Jonguk 3 years ago
parent 461dfd43f1
commit 31b00d536c

@ -28,9 +28,9 @@ public class MinSimsaUser680 implements Serializable {
@Column(name = "msu_maincode", length = 10)
private Long msuMaincode;
@Schema(required = true, title = "민원심사사용자코드", example = " ", description = "Input Description...")
@Column(name = "msu_userid", nullable = false, length = 20)
private String msuUserid;
// @Schema(required = true, title = "민원심사사용자코드", example = " ", description = "Input Description...")
// @Column(name = "msu_userid", nullable = false, length = 20)
// private String msuUserid;
@Schema(required = false, title = "결과코드", example = " ", description = "Input Description...")
@Column(name = "msu_result", nullable = true)
@ -53,10 +53,10 @@ public class MinSimsaUser680 implements Serializable {
@JsonIgnore
//@JsonIgnore
@Setter
@ManyToOne //(fetch = FetchType.LAZY)
//@JoinColumn(name = "msu_userid", nullable = false)
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "msu_userid")
private MinUserinfo minUserinfo;
}

@ -69,8 +69,8 @@ public class MinUserinfo implements Serializable {
@Transient
@JsonIgnore
//@Transient
//@JsonIgnore
@OneToMany(targetEntity = MinSimsaUser680.class, mappedBy = "minUserinfo")//, cascade = CascadeType.ALL, orphanRemoval = true)
private final Set<MinSimsaUser680> minSimsaUser680s = new HashSet<>();

@ -7,7 +7,7 @@ spring:
profiles:
active: local
include: oauth
main:
main:
# bean name 중복 허용 - junit 사용시 true??
allow-bean-definition-overriding: true
# 순환참조 제거

Loading…
Cancel
Save