What does the findAll method of a JpaRepository return?

  • A boolean value.
  • A collection of entity objects.
  • A single entity.
  • An error message.
The findAll method of a JpaRepository returns a collection (typically a List) of entity objects. This method is used to retrieve all records/entities from the associated database table. It does not return a single entity, a boolean value, or an error message. It provides a convenient way to retrieve all records from a database table as Java objects.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *