posted 13 years ago
Hi all,
I want to do a one-to-one mapping with hibernate. In the beginning it seems to be very easy, but now I am not so sure. I tried and tried, but I always failed.
Maybe someone of you could help me to fix my problem. I become more and more desprate...
To do this mapping I changed two existing tables to the following structure:
Now I want to map them into my Entities, which look like this:
and
When I trying to read this entities everything works fine, but as soon as I want to insert one I get the following exception:
This is the part where I am trying to insert the entity:
In the row of sql statements I can see, that the sequence is executed, but this is all.
I searched very long for a solution and tried different suggestions, but none worked.
So I want to ask you, if someone could help.
It would be very nice...
All the best,
arres