标签: java hibernate
所以我有两张桌子:
就像你看到的那样,我在Client和Exercice之间有一对多
我尝试了此查询:SELECT c.nomCli, e.annee FROM Exercice e INNER JOIN e.client c
SELECT c.nomCli, e.annee FROM Exercice e INNER JOIN e.client c
但我得到了这个例外:
Exception in thread "AWT-EventQueue-0" org.hibernate.exception.SQLGrammarException: could not execute query