http://bchavez.bitarmory.com/archive/20 ... ibute.aspx
In the unidirectional case, the foreign key column in the child table doesn't map to a property in the child object; it is in the data model, but not the object model. Since it is unidirectional there is just a property in the parent object [that contains a collection of children]; not the child [the child object does not contain any information back to the parent]. In addition, the foreign key column [in the child table] has to be defined as nullable because Hibernate will first insert the child row (with a NULL foreign key) and then update it [the inserted row] later [with the parent's primary key].
I found this post explaining what I wish to accomplish and was a bit put put off by the statement "In addition,
the foreign key column[in the child table] has to be defined as nullable because Hibernate will first insert the child row". From a DBA perspective this is a huge no-no and in most companies would not be accepted.