[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5732?page=c...
]
Peris Brodsky commented on HHH-5732:
------------------------------------
Benoit, the hibernate docs you reference give two examples: one using mappedBy (the first
one), and one without. I assume you followed the first one?
What version are you using? I tried this using 3.6.1, and is does *not* work for me.
Zeros are always inserted into the index column.
-Peris
@OrderColumn not updated if @OneToMany has mappedby defined
-----------------------------------------------------------
Key: HHH-5732
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-5732
Project: Hibernate Core
Issue Type: Bug
Components: entity-manager
Affects Versions: 3.6.0
Reporter: Jaroslaw Lewandowski
Attachments: Screen shot 2011-01-10 at 21.41.27.png, TestOrderColumn.zip
As I'm not able to reopen HHH-5378 I'm creating a new one. There is nothing said
in JPA2.0 documentation that with @OrderColumn are any limitations regarding of usage
mappedBy attribute on @OneToMany annotation. As I mentioned in the comments of that issue
- even Hibernate documentation
http://docs.jboss.org/hibernate/core/3.6/reference/en-US/html/collections...
uses example which fails when executed with 3.6.0.Final version.
Test case attached.
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira