I just tried EJB3Unit-1.2 for my session bean. It works fine if the entity beans inside the session bean has declared NamedQueries.
But, when I have an operation (i.e. findByName(
String firstName, String lastName)) inside the same session bean that uses dynamic query such as the following:
SELECT c FROM Client c JOIN c.names n WHERE lower(n.firstName) like :firstName AND lower(n.lastName) like :lastName
EJB3Unit for some strange reasons cannot return any results from the query!!
Does anyone ever have problems with dynamic queries with JOIN tables?