Top Description Methods
org.hibernate.boot.model.source.spi

public Interface Orderable

Known Direct Subinterfaces
org.hibernate.boot.model.source.spi.PluralAttributeElementSourceManyToMany
Known Direct Implementers
org.hibernate.boot.model.source.internal.hbm.PluralAttributeSourceBagImpl, org.hibernate.boot.model.source.internal.hbm.PluralAttributeSourceIdBagImpl, org.hibernate.boot.model.source.internal.hbm.PluralAttributeSourceSetImpl

Contact to define if a plural attribute source is orderable or not.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

The ORDER BY fragment used during loading this plural attribute from DB.
getOrder
()

The order by clause used during loading this plural attribute.

public boolean

Returns:

true indicates to apply the ORDER BY; false means not.
isOrdered
()

If the source of plural attribute is supposed to be applied the ORDER BY when loading.

Method Detail

getOrderback to summary
public String getOrder()

The order by clause used during loading this plural attribute.

If the ordering element is not specified, ordering by the primary key of the associated entity is assumed

Returns:String

The ORDER BY fragment used during loading this plural attribute from DB.

See Also
jakarta.persistence.OrderBy#value()
isOrderedback to summary
public boolean isOrdered()

If the source of plural attribute is supposed to be applied the ORDER BY when loading.

Returns:boolean

true indicates to apply the ORDER BY; false means not.