Interface CRUDAccessor<T extends AbstractIdentifiableObject>

    • Method Detail

      • remove

        void remove​(org.bson.types.ObjectId id)
      • save

        T save​(T entity)
        Save an entity. If an entity with the same id exists, it will be updated otherwise inserted.
        Parameters:
        entity - the entity instance to be saved
        Returns:
        the saved entity
      • save

        void save​(Collection<? extends T> entities)
        Save a list of entities.
        Parameters:
        entities - the list of entities to be saved