help with JPA console

Hello,

Just testing this phenomenal IDE for Java development with a EJB session Bean that is using Hibernate JPA with orm.xml entity definition. I configured the datasource and persistence.xml and I tried to open a JPA console. After trying to do a simple SELECT h FROM Subsidiary h I am getting  an exception that I cannot fix:

java.lang.RuntimeException: org.hibernate.hql.internal.ast.QuerySyntaxException: Subsidiary is not mapped [SELECT h from Subsidiary h]

I have this well definied in my orm.xml because idea is not displaying red colors in pojo definitions or atributes.

I attached a problem screenshot.

thanks,

Cristian



Attachment(s):
screenshot.jpg
1 comment

Ok I solved it. I needed to specify the full package : com.x.pojos.Customer

Bye!

0

Please sign in to leave a comment.