I'm trying to get data from a combination, but the following exceptions occur:
I would like to know how to avoid this exception.
T_estimate has data
No data in T_estimate_details
両方 If you have both data, no exceptions have occurred.
[JPQL running]
select
new sel.T(
t_e.esti_rep_no
, t_ed.esti_rep_details_no)
from
T_estimate_left join_e.t_estimate_details_ed
格納Results storage class br
package sel;
public class T{
private intesti_rep_no;
private intesti_rep_details_no;
// Accessory method omitted
}
[Stack trace]
java.lang.IllegalArgumentException: org.hibernate.QueryException: could not instantiate class [sel.T] from tuple
public class T{
// private intesti_rep_no;
// private intesti_rep_details_no;
private Integeresti_rep_no;
private Integeresti_rep_details_no;
// Accessory method omitted
}
© 2024 OneMinuteCode. All rights reserved.