I,m noob in coding.
I coding based spring pet clinic.
now not passing object
<div th:replace="~{::caller-select('사이트', 'hstry_site', ${historySites})}"></div>
<div th:replace="~{::caller-select('유형', 'hstry_type', ${historyTypes})}"></div>
<div th:replace="~{::caller-input('문의 내용', 'hstry_content')}"></div>
‘hstry_content’ OK. but ‘hstry_site’ & ‘hstry_type’ is not pass.
chrome dev mode > network > formdata > 3 value all OK.
Can i know how to fix?
History class is below.
@Column(name = "hstry_content")
private String hstry_content;
@ManyToOne(cascade = {CascadeType.ALL})
@JoinColumn(name = "hstry_type_id", referencedColumnName = "id", insertable = false, updatable = false)
private HistoryType hstry_type;
@ManyToOne(cascade = {CascadeType.ALL})
@JoinColumn(name = "hstry_site_id", referencedColumnName = "id", insertable = false, updatable = false)
private HistorySite hstry_site;
when change Column info like
// @Column(name = "hstry_type_id")
// private Integer hstry_type;
//
// @Column(name = "hstry_site_id")
// private Integer hstry_site_id;
its passing to controller.
New contributor
noob_kr_computer is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.