Hi,
If you have marked the class @Entity, i table will automatically be created on deployment in JBoss (assuming you have set the hbm2ddl task to create or update), to stop this table creation you need to remove @Entity, but this will break the OneToOne relationship.
With inheritance you have a few options (3), I personally would not use a table per concrete class strategy as it creates an unmormalised DB model (redundant data). This leaves 2 options, 1) single table for the entire hierarchy, or 2) table per subclass, my own personal preference is for the table per subclass (prefer the DB schema created).
Cheers,
Andy
_________________ Rules are only there to be broken
|