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

Parameters

query

a query string

params

optional sequence of indexed parameters

See also


@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

Parameters

query

a query string

sort

the sort strategy to use

params

optional sequence of indexed parameters

See also


@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

Parameters

query

a query string

params

Map of named parameters

See also


@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

Parameters

query

a query string

sort

the sort strategy to use

params

Map of indexed parameters

See also


@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

Parameters

query

a query string

params

Parameters of named parameters

See also


@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

Parameters

query

a query string

sort

the sort strategy to use

params

Parameters of indexed parameters

See also


@GenerateBridge
open fun find(query: Bson): PanacheQuery<Entity>

Find entities using a BSON query.

Return

a new PanacheQuery instance for the given query

Parameters

query

a query string

See also


@GenerateBridge
open fun find(query: Bson, sort: Bson): PanacheQuery<Entity>

Find entities using a BSON query and a BSON sort.

Return

a new PanacheQuery instance for the given query

Parameters

query

a query string

sort

the sort strategy to use

See also