-1
我有以下Spring Data
查詢:SQL:無論列名是否存在?
@Query(value = "select * from person where person_id =?! and family_id not in (select related_person_id from relationships where related_family_id = ?1)", native query = true)
Person getPerson(String personId);
我收到錯誤:
Caused by: java.sql.SQLException: Invalid column name
但是,我知道,在我的查詢中的兩個表我所有的列名是正確的,有什麼事情ne造成這種情況?
不應該有「的周圍的查詢 – Stultuske
能?你張貼表格嗎? – Danieboy
你可以張貼表格和t嗎?他的實體bean? – isnot2bad