<aside> <img src="attachment:a3a56fc3-c53c-47ff-aacc-d7c34f62abfd:table_of_content.png" alt="attachment:a3a56fc3-c53c-47ff-aacc-d7c34f62abfd:table_of_content.png" width="40px" />

TABLE OF CONTENT

</aside>

Package dev.tommasop1804.springutils.jpa
Since version 1.0.0
JVM class name JPAUtilsKt

Properties


Checks

:ij-field-value: JpaRepository<T, *>.isNotEmpty

Since version 1.0.0
Receiver JpaRepository<T, *>
Type Boolean
Generic T : Any
Dinamically computed ✔️

Extension property for JpaRepository that checks if the repository is not empty.

Retrieves the total count of entities in the repository and returns true if the count is greater than zero, otherwise false.

It provides a convenient way to verify the existence of any entities in the repository without fetching the actual data.

:ij-field-value: JpaRepository<T, *>.isEmpty

Since version 1.0.0
Receiver JpaRepository<T, *>
Type Boolean
Generic T : Any
Dinamically computed ✔️

Extension property for JpaRepository that checks if the repository is empty.

Retrieves the total count of entities in the repository and returns false if the count is greater than zero, otherwise true.

It provides a convenient way to verify the existence of any entities in the repository without fetching the actual data.