0 Replies Latest reply on Feb 28, 2012 6:10 AM by setzergabbiani

    HQL returning java.lang.Class object


      Hello, i'm facing a weird issue right now, and I don't know what to do... Here's what's going on:

      I have 3 mapped cfcs: user, module and media. Each media has n users and n modules (both are many to many relationships) and everything is configured ok and the entities load correctly with the entityLoad function.

      But here's my problem:

      When I select my media using hql, joining with user or module, an object of type java.lang.class is returned instead of the entity. I've noticed that if I use inner join fetch the entity returns correctly, but hibernate does not allow me to use inner join fetch with two properties. Should coldfusion really return this java.lang.Class object or is it a bug? Please help


      Thank you