1 Reply Latest reply on Jul 31, 2007 5:32 PM by Pete Muir

    Hot deployment and HQL

    Damian Harvey Master

      I have a class that I am populating from a Query like this:

      List<CurrencyAmount> currencyAmounts = entityManager.createQuery("select new com.locuslive.odyssey.amount.CurrencyAmount(la.currency, sum(la.chargeAmount)) from LineAmount ...etc

      If I put this CurrencyAmount class into WEB-INF/dev then Hibernate cannot find it.

      org.hibernate.hql.ast.QuerySyntaxException: Unable to locate class [com.locuslive.odyssey.util.CurrencyAmount]

      Moving the class to a package that isn't hot deployed fixes this.

      Bug or Feature?

      Cheers,

      Damian.