Class BasicJpaEntityRepository<E extends BasicJpaEntity<E,​?>>

    • Constructor Detail

      • BasicJpaEntityRepository

        public BasicJpaEntityRepository()
    • Method Detail

      • saveAndFlush

        public E saveAndFlush​(E entity)
        Description copied from interface: WithSaveAndFlush
        Saves the specified entity and then flushes the persistence context into the underlying data sources.
        Specified by:
        saveAndFlush in interface WithSaveAndFlush<E extends BasicJpaEntity<E,​?>>
        Parameters:
        entity - the entity to save.
        Returns:
        the saved entity.
      • deleteByComponentInstanceId

        public long deleteByComponentInstanceId​(String instanceId)
        Description copied from interface: EntityRepository
        Deletes all entities belonging to the specified component instance.
        Specified by:
        deleteByComponentInstanceId in interface EntityRepository<E extends BasicJpaEntity<E,​?>>
        Parameters:
        instanceId - the unique component instance identifier.
        Returns:
        the number of deleted entities.