Left external coupling does not work.

Asked 2 years ago, Updated 2 years ago, 146 views

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

spring jpa hibernate

2022-09-30 14:33

1 Answers

public class T{
    // private intesti_rep_no;    
    // private intesti_rep_details_no;

    private Integeresti_rep_no;    
    private Integeresti_rep_details_no;

    // Accessory method omitted
}


2022-09-30 14:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.