Default mapping


Embedding a subclass

The three patterns of inheritance allow for the data of a subclass to be stored in the superclass table, its own table along with all the fields of the superclass, or in its own table with only the subclass fields stored. Is it possible to store a subclass class embedded in another class? What would the metadata look like?

Embedding a class holding a reference to another class

Can you have nested embedding or relatioship mapping nested in an <embedded> element? Consider embedding Company in the department class:

Alternatively, might we embed Company in Employee, but store Adress in its own class:

If these two types of mappings are possible, they should be tested.

MetadataMappings (last edited 2009-09-20 23:08:54 by localhost)