On 9.6.23 14:30, Ben Weidig wrote:
we ran into similar issues with custom queries, our workaround is calling
getSession() on the session, like this:

    return this.session.getSession().createQuery(sql) //
                            .setParameter("replyToId", relatedId) //
                            .setParameter("type", type) //
                            .executeUpdate();

Hi, I have the same issue since 5.7.3 -- I encountered the issue in a different context and discussed it briefly here in that context when 5.7.3 was released.

The problem and solution is the same:

@Inject private Session session;

session.createQuery("from Table")

fails as createQuery returns null

On the other hand

session.getSession().createQuery("from Table")

works without issues.


Who knows maybe there is some other consequence of using session.getSession().



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to