[jboss-user] [JBoss Seam] - Unit Testing EL in EJB-QL/HQL

mrobinson28 do-not-reply at jboss.com
Thu Apr 12 08:52:12 EDT 2007

Is it possible to write a unit test for a method that uses EL expressions within EJB-QL/HQL?  I attempted to do this and get the exception: 

 javax.persistence.PersistenceException: org.hibernate.QueryException: unexpected char: '#' 

The documentation states that: 

 Seam proxies the EntityManager or Session  object whenever you use a Seam-managed persistence context or inject a container managed persistence context using @PersistenceContext.

Does this not occur if the EntityManager is set using SeamTest and setField? 


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

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

More information about the jboss-user mailing list