Package io.quarkus.mongodb.panache
Class PanacheMongoEntity
java.lang.Object
io.quarkus.mongodb.panache.PanacheMongoEntityBase
io.quarkus.mongodb.panache.PanacheMongoEntity
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
.
If you want a custom ID type or strategy, you can directly extend PanacheMongoEntityBase
instead, and write your own ID field. You will still get auto-generated accessors and
all the useful methods.- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
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, update
-
Field Details
-
id
public org.bson.types.ObjectId idThe auto-generated ID field. This field is set by Mongo when this entity is persisted.- See Also:
-
-
Constructor Details
-
PanacheMongoEntity
public PanacheMongoEntity()
-
-
Method Details