Hibernate version: 3.1
Mapping documents: Tutorial Section 1.3.4
Name and version of the database you are using: HSQLDB server 1.8.0
Hi
I am busy investigating the use of Hibernate in my project.
So far it looks promising.
In the tutorial the following statement is made:
Quote:
You can see that the primary key of the collection table is in fact a composite key, using both columns. This
also implies that there can't be duplicate email addresses per person, which is exactly the semantics we need for
a set in Java.
When checking out the DB for the generated tables, I found that I was able to add duplicate entries. This is due to the fact that the
Code:
PERSON_EMAIL_ADDR
table has no primary key set. This means the above mentioned statement is false.
I guess there is a bug in generating the collection table.
Thanks
Kobus