[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Mapping interfaces

amnesty_puppy do-not-reply at jboss.com
Mon Jun 29 06:45:10 EDT 2009


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.


View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240695#4240695

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240695

More information about the jboss-user mailing list