[jboss-user] [EJB 3.0] - EJBQL in JBoss 4 / EJB3 ?

baronDodd do-not-reply at jboss.com
Mon Sep 3 12:57:47 EDT 2007

Just a quick question: When defining @NamedQueries for jboss ejb3 entities, can I use old EJB-QL from our EJB2 Entity Beans 

@NamedQuery(name="findAllApplications", query="SELECT OBJECT(application) FROM Application application")

Seem to be getting a lot of sytax errors reported:

No data type for node: org.hibernate.hql.ast.tree.IdentNode \-[ALIAS_REF] IdentNode: 'application' {alias=application, no from element}

It looks like it is expecting a HQL statement, however tons of the EJB3 tutorials online show NamedQueries containing the old EJB 2 finder syntax.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4080584#4080584

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4080584

More information about the jboss-user mailing list