| 
					
						 If this has been answered, pls post link as I've done my searches and gone through the manuals.
 
 I wonder if this is possible to map:
 
 Class Activity points to a collection of Address subclasses twice, e.g. Activity has two Sets: one for internalAddresses one for externalAddresses each of which contain a set of Address subclasses.
 
 I was hoping to use "Table per Concrete class" inheritance mapping, but I'm coming unstuck because I've got two arrays to populate on Activity. I keep getting :
 
 net.sf.hibernate.WrongClassException: Object with id: 1 was not of the specified subclass: com.simon.dao.InternalAddressesDo (loaded object was of wrong class)
 	at net.sf.hibernate.loader.Loader.instanceAlreadyLoaded(Loader.java:455)
 
 Please advise if how I should approach this, as I've tried using polymorphism, discriminator-value attributes, but seem to always hit a wall because of the two foreign keys.
 
 Thanks 
					
  
						
					 |