How do I map a one-to-one value type association in an joined-subclass?
- by David Rubin
I've got a class hierarchy mapped using table-per-subclass, and it's been working out great:
class BasicReport
{
...
}
class SpecificReport : BasicReport
{
...
}
With mappings:
<class name="BasicReport" table="reports">
<id name="Id" column="id">...</id>
<!-- some common properties -->
</class>
…