2013年1月6日 星期日

[JPA] Unable to find column with logical name COLUMNNAME in table TABLENAME

Error Message
Unable to find column with logical name COLUMNNAME in table TABLENAME


Solution
若 A join B,則 B 必須被宣告在 A 之前。


<persistence-unit>
    <class>B</class>
    <class>A</class>
</persistence-unit>




沒有留言:

張貼留言