2 Replies Latest reply on Apr 30, 2009 5:03 AM by afroehlich

    org.hibernate.QueryException: could not resolve property

    afroehlich

      Hey there,

      I just ran into this QueryException while executing the following Query unsing Envers 3.5.0-SNAPSHOT.

      auditReader.createQuery().forRevisionsOfEntity(CustomerOrderDO.class, true, false).add(
       AuditEntity.property("pk").eq(5).setMaxResults(20).getResultList();


      The property is the primary key and of course exists. The corresponding column name is equal to it in the original and the audited table.

      While debugging I came across a few properties which are not properties of my entity but may be helpfull:

      '
      originalId.pk
      ' and '
      id.pk
      ' .

      Does anymone know what the difference between and the purpose of these 'synthetic'-properties is?
      At the moment I'm using '
      originalId.pk
      ' instead of '
      pk
      ' but I don't know if that is the intention.

      Thanks for comments in advance,
      Alex