Ok I understand and I tried this before but could not get it to work.
I mapped CustomerIimpl to hibernate with all it's properties (implements Securable & Customer)
I mapped ProjectImpl to hibernate with all it's properties (implements Securable & Customer)
there is a one to many reference from customer to project.
Generating schema from that mapping file gives the following error
Code:
D:\ontw\s-g\scripts\build.xml:336: Schema text failed: Association references unmapped class: nl.s.g.d.i
nterfaces.Project
I tried making class1impl a subclass of it's interface, this works but only for one interface. Now if I want to make a reference to a Securable it won't work.
So somehow I'll have to map Securable to the mapping file too. I've read the section in the manual concering the different ways this can be mapped, and it seems that the last options is the most appropriate for my solution, but I tried the any tag in all it shapes and sizes, but I always get errors when trying to compile the mapping document.
I tried creating additional class mappings for the interfaces, but this results in extra tables with or duplicate data fields (if I also map those fields) or just a table with id's which is not what I'm looking for I think.[/code]