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 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 Details

    • 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:
  • Constructor Details

    • PanacheMongoEntity

      public PanacheMongoEntity()
  • Method Details