In a couple of cases I would have liked to use a single table inheritance approach, but ran into trouble mapping the same table to multiple entities. When generating the schema, the table is included twice, once for each mapping.
We only use schema generation for our automated testing (in memory DB), but I couldn't find a 'clever' way to define the schema so it would only emit ddl for one of the mappings.
Am I approaching STI wrong (define two different entity case classes, define table mapping for each specifying the same table), or missing a way to turn off schema generation on a per-mapping basis?
Thanks,
Jason