Skip to main content



      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 10:19
Eclipse UserFriend
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
Previous Topic:Setting Cache expiry in persistance.xml
Next Topic:QueryHints.LEFT_FETCH not working
Goto Forum:
  


Current Time: Sat Apr 26 18:30:09 EDT 2025

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

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

Back to the top