public annotation OrderBy(value as String = "")
Defines the stable default order of a to-many relationship.
The expression contains mapped property names, optional ASC or DESC, and comma-separated terms. The mapping compiler validates every property against the relationship target type.
@OneToMany(mappedBy="order") @OrderBy(value="position ASC, id ASC") public property lines as EntityCollection<OrderLine>