[
http://opensource.atlassian.com/projects/hibernate/browse/ANN-701?page=co...
]
Emmanuel Bernard resolved ANN-701.
----------------------------------
Resolution: Cannot Reproduce
Fix Version/s: (was: 3.3.1)
Might be a problem with ingres, but the exception has not been posted.
test committed in org.hibernate.test.annotations.collectionelement.indexedCollection
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:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira