Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

jpa repository delete method return value

@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
}
 
PREVIOUS NEXT
Tagged: #jpa #repository #delete #method #return
ADD COMMENT
Topic
Name
3+6 =