find

@GenerateBridge
open fun find(query: String, vararg params: Any): PanacheQuery<Entity>

Find entities using a query, with optional indexed parameters.

Return

a new PanacheQuery instance for the given query

See also

Parameters

query

a query string

params

optional sequence of indexed parameters


@GenerateBridge
open fun find(query: String, sort: Sort, vararg params: Any): PanacheQuery<Entity>

Find entities using a query and the given sort options, with optional indexed parameters.

Return

a new PanacheQuery instance for the given query

See also

Parameters

query

a query string

sort

the sort strategy to use

params

optional sequence of indexed parameters


@GenerateBridge
open fun find(query: String, params: Map<String, Any>): PanacheQuery<Entity>

Find entities using a query, with named parameters.

Return

a new PanacheQuery instance for the given query

See also

Parameters

query

a query string

params

Map of named parameters


@GenerateBridge
open fun find(query: String, sort: Sort, params: Map<String, Any>): PanacheQuery<Entity>

Find entities using a query and the given sort options, with named parameters.

Return

a new PanacheQuery instance for the given query

See also

Parameters

query

a query string

sort

the sort strategy to use

params

Map of indexed parameters


@GenerateBridge
open fun find(query: String, params: Parameters): PanacheQuery<Entity>

Find entities using a query, with named parameters.

Return

a new PanacheQuery instance for the given query

See also

Parameters

query

a query string

params

Parameters of named parameters


@GenerateBridge
open fun find(query: String, sort: Sort, params: Parameters): PanacheQuery<Entity>

Find entities using a query and the given sort options, with named parameters.

Return

a new PanacheQuery instance for the given query

See also

Parameters

query

a query string

sort

the sort strategy to use

params

Parameters of indexed parameters