Package-level declarations

Types

Link copied to clipboard
object Panache
Link copied to clipboard

Define persistence and query methods for an Entity with a default ID type of ObjectId

Link copied to clipboard

Define persistence and query methods for an Entity with a type of Id

Link copied to clipboard

Represents an entity with a generated ID field id of type ObjectId. If your Mongo entities extend this class they gain the ID field and auto-generated accessors to all their public fields, as well as all the useful methods from PanacheMongoEntityBase.

Link copied to clipboard
abstract class PanacheMongoEntityBase

Represents an entity. If your Mongo entities extend this class they gain auto-generated accessors to all their public fields, as well as a lot of useful methods. Unless you have a custom ID strategy, you should not extend this class directly but extend PanacheMongoEntity instead.

Link copied to clipboard

Represents a Repository for a specific type of entity Entity, with an ID type of ObjectId. Implementing this repository will gain you the exact same useful methods that are on PanacheMongoEntityBase. If you have a custom ID strategy, you should implement PanacheMongoRepositoryBase instead.

Link copied to clipboard

Represents a Repository for a specific type of entity Entity, with an ID type of Id. Implementing this repository will gain you the exact same useful methods that are on PanacheMongoEntityBase. Unless you have a custom ID strategy, you should not implement this interface directly but implement PanacheMongoRepository instead.

Link copied to clipboard
interface PanacheQuery<Entity : Any>

Interface representing an entity query, which abstracts the use of paging, getting the number of results, and operating on List or Stream.