Package io.quarkus.mongodb.panache
Class PanacheMongoEntity
- java.lang.Object
-
- io.quarkus.mongodb.panache.PanacheMongoEntityBase
-
- io.quarkus.mongodb.panache.PanacheMongoEntity
-
public abstract class PanacheMongoEntity extends PanacheMongoEntityBase
Represents an entity with a generated ID fieldid
of typeObjectId
. 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 fromPanacheMongoEntityBase
. If you want a custom ID type or strategy, you can directly extendPanacheMongoEntityBase
instead, and write your own ID field. You will still get auto-generated accessors and all the useful methods.- See Also:
PanacheMongoEntityBase
-
-
Field Summary
Fields Modifier and Type Field Description org.bson.types.ObjectId
id
The auto-generated ID field.
-
Constructor Summary
Constructors Constructor Description PanacheMongoEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
Methods inherited from class io.quarkus.mongodb.panache.PanacheMongoEntityBase
count, count, count, count, count, delete, delete, delete, delete, delete, deleteAll, deleteById, find, find, find, find, find, find, find, find, findAll, findAll, findById, findByIdOptional, list, list, list, list, list, list, list, list, listAll, listAll, mongoCollection, mongoDatabase, persist, persist, persist, persist, persistOrUpdate, persistOrUpdate, persistOrUpdate, persistOrUpdate, stream, stream, stream, stream, stream, stream, stream, stream, streamAll, streamAll, update, update, update, update, update, update, update
-
-
-
-
Field Detail
-
id
public org.bson.types.ObjectId id
The auto-generated ID field. This field is set by Mongo when this entity is persisted.- See Also:
PanacheMongoEntityBase.persist()
-
-