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

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

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

Loading…
Cancel
Save