JPA -Repository -Löschmethode Rückgabewert

@Repository
public interface FruitRepository extends JpaRepository<Fruit, Long> {
    Fruit deleteById(Long id); // To get deleted record
    Long deleteById(Long id);  // To get deleted record count
}
Daschi