I need to create a row in my child table without creating a row in my parent table (since it already exists). Is there any way to do this? Here's a sample hbm file:
Code:
<hibernate-mapping default-lazy="false">
<class name="Person"
table="person">
<id name="personId" type="java.lang.Integer"
column="person_id">
<generator class="native" />
</id>
// Some properties here
<joined-subclass
name="Author"
table="author">
<key column="person_id" />
// Some properties here
</joined-subclass>
</class>
</hibernate-mapping>
Is there any way to add a row to the author table without adding a row to a person table? Every row in the person table could have 0 or 1 corresponding row in the author table since not every person has to be an author =)
Thanks in advance!