0 Replies Latest reply on Jun 29, 2009 6:45 AM by David Masters

    Mapping interfaces

    David Masters Newbie


      I'm learning to use Hibernate for a project I've been moved to. They want to use Envers but it doesn't work with the any-type mapping that they are using for a class implementing multiple interfaces, so how could I map this without using 'any'.

      class User implements Buyer, ITwo

      The class needs to be mapped straight to User and also by Buyer and ITwo.

      class Transaction { private User user; }
      class Purchase { private Buyer buyer; }

      Would really appreciate any help on this.