posted 16 years ago
Hi,
I am creating a small application for myself and I am trying to insert a Radio object into the database through the Pilot Object. It is a one-to-one relationship. It seems to insert the data, since I can list the pilots and their radios after insert. But if I run the app again the pilots don't have any Radios, they are NULL. I use PilotDAO to insert data like this:
I use Derby database. The pilots stick to the tables but not the radios.
I have the following:
POJO's:
Person:
Pilot:
Radio:
Hibernate mapping:
[ February 14, 2007: Message edited by: Henrik Engert ]