Take the 2-minute tour ×

I have a table structure which lends itself to table per subclass design. my "base" table has many common fields and each one of the children also has many fields that are unique for that entity. This works very well with joined-sublass where the common fields are added to the child entities through inheritance. The base is linked to the children through a common PK. However, one of my tables has to be split (due to database replication limitations) and I would like to have the one-to-one mapping of these two tables as a single object. In isolation this would work using the join mapping, but since this class is also inheriting it is not working.

e.g.: DB stracture base - col1 normal_child - col2 split_child1 - col3 split_child2 - col4

abstract entity1- col1 entity2 : entity1 - col1, col2 entity3 : entity1 - col1, col3, col4

Is this possible (and what version supports it)? how should the mapping look like?

share|improve this question
add comment


Your Answer

