christian wrote:
Not in code, but you should just add a NOT NULL constraint to the CAT_ID FK column in the CLAWS table.
Thanks for the response.
Im using hsqldb as my database so Im not sure how ti make the changes you mentioned (the database manager is very simple). What I was thinking is that some changes need to made in the hbm.xml docs so that the tables can be modified.
In addition to my previous post I would like to add a question about having a one-to-one relationship with another class e.g. (Cat and Owner). How would I be able to reflect this in the xml.