Hibernate throwing exception on insert on one-to-many
posted 3 years ago
Hello, I have the following DB tables:
One DSNValue can has a list of DSAreas.
These are the mapping files:
And when I create a new DSNValue I hace the following code:
t.commit throws a NullPointerException, but in the hibernate log I can see the INSERT statements an its values and they are ok. For selecting the DB elements this mapping configuration works fine. What can be happening?