OrderBy
annotationin packageklyn.data.mapping
public annotation OrderBy(value as String = "")
OrderBy

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.

Example
@OneToMany(mappedBy="order")
@OrderBy(value="position ASC, id ASC")
public property lines as EntityCollection<OrderLine>