| Re: Query field created by the @OrderColumn [message #778457] |
Thu, 12 January 2012 10:19 |
Chris Delahunt Messages: 862 Registered: July 2009 |
Senior Member |
|
|
By specifying the @OrderColumn(name = "MYORDER") on the OneToMany you are saying that the bList controls that field. I'm guessing that the error you get states that you have two writable fields, or is due to the field already existing.
If you are going to map the MYORDER field within the B object directly, you should be using the OrderBy on the collection instead of OrderColumn and maintain the collection order and the order field yourself.
Best Regards,
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.02587 seconds