Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Re: Query field created by the @OrderColumn
Re: Query field created by the @OrderColumn [message #778457] Thu, 12 January 2012 15:19
Chris Delahunt is currently offline Chris DelahuntFriend
Messages: 1353
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,
Previous Topic:Setting Cache expiry in persistance.xml
Next Topic:QueryHints.LEFT_FETCH not working
Goto Forum:

Current Time: Sun May 31 14:57:09 GMT 2020

Powered by FUDForum. Page generated in 0.01585 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top