@Retention(CLASS) @Target({FIELD})

public @interface OrderColumn

Persists the positions of elements in an owning List.

Methods

public abstract String name() default "list_position"Stores positions for an owning List in its join table.

Method details

name

public abstract String name() default "list_position"
Stores positions for an owning List in its join table. Cannot be combined with OrderBy or used on an inverse association.

Returns

column name; list_position by default