Problem with @OrderColumn when using EclipseLink
In JPA 2.0 the annotation @OrderColumn provides support for persisting the order (or rather the index) of a list. Unfortunately this feature is buggy in some versions of EclipseLink 2.* which is the JPA 2.0 Reference Implementation. The following issue in EclipseLink's bug tracker describes the wro