JPA in 8M1: good code is red
This is a part of my persistence.xml:
<persistence-unit name="IFXPU_JTA" transaction-type="JTA">
<jta-data-source>java:/IFXPU_DS</jta-data-source>
I add a data source to Idea (it's in the attached image). You can also see a red at "from MarketingPanel". It says "SELECT expected". When I change it to "select mp from MarketingPanel mp", Idea is happy :)
Edited by: Thai Dang Vu on Aug 17, 2008 10:06 PM
Attachment(s):
jpa.png
Please sign in to leave a comment.
Well, it seems there is no image actually attached.
Thai Dang Vu wrote:
"from MarketingPanel" is not valid JPA, but an extension that Hibernate understands.
If you are ok with using hibernate specific queries, then add a hibernate facet to the same module.
Thai Dang Vu wrote: