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<>();

Loading…
Cancel
Save