]
Emmanuel Bernard commented on ANN-701:
--------------------------------------
no, Check the unit code I pointed to. It creates the proper schema including the
n_key_contact column
Using @CollectionId annotation breaks schema generation
-------------------------------------------------------
Key: ANN-701
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-701
Project: Hibernate Annotations
Issue Type: Bug
Environment: Hibernate version: 3.2.5 GA
Hibernate Annotations version: 3.3.0 GA
Ingres Database 2006
Reporter: Tim Evers
Basically, if I use the org.hibernate.annotations.CollectionId annotation, for some
reason, hibernate won't generate the table for the mapping.
This works:
@CollectionOfElements
@JoinTable(
name = "contact",
joinColumns = @JoinColumn(name = "n_key_person"))
@IndexColumn(name = "n_index_order")
This doesn't:
@CollectionOfElements
@JoinTable(
name = "contact",
joinColumns = @JoinColumn(name = "n_key_person"))
@CollectionId(
columns = @Column(name = "n_key_contact"),
type = @Type(type = "long"),
generator = "increment" )
It fails when it tries to select from the contact table, because it didn't get
created.
The @CollectionId mapping seems to work exactly the way I want if I go create the contact
table manually.
Forum topic here:
http://forums.hibernate.org/viewtopic.php?t=980254&highlight=collecti...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: