ReleasesRepository
The ReleasesRepository
interface is useful to manage the queries for the releases
Author
N7ghtm4r3 - Tecknobit
See also
JpaRepository
Functions
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = "INSERT INTO " + RELEASES_KEY +
" ("
+ IDENTIFIER_KEY + ","
+ CREATION_DATE_KEY + ","
+ RELEASE_VERSION_KEY + ","
+ PROJECT_KEY + ","
+ RELEASE_NOTES_KEY
+ " )"
+ " VALUES ("
+ ":" + IDENTIFIER_KEY + ","
+ ":" + CREATION_DATE_KEY + ","
+ ":" + RELEASE_VERSION_KEY + ","
+ ":" + PROJECT_KEY + ","
+ ":" + RELEASE_NOTES_KEY + ")", nativeQuery = true)
Method to execute the query to add a new Release
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = ""UPDATE " + RELEASES_KEY + " SET "
+ APPROBATION_DATE_KEY + "=:" + APPROBATION_DATE_KEY
+ " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
Method to execute the query to approve an existing Release
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = ""DELETE FROM " + RELEASES_KEY + " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
Method to execute the query to delete an existing Release
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = ""UPDATE " + RELEASES_KEY +
" SET " +
RELEASE_NOTES_KEY + "=:" + RELEASE_NOTES_KEY +
" WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
@Modifying(clearAutomatically = true)
@Query(value = ""UPDATE " + RELEASES_KEY +
" SET " +
RELEASE_VERSION_KEY + "=:" + RELEASE_VERSION_KEY + "," +
RELEASE_NOTES_KEY + "=:" + RELEASE_NOTES_KEY +
" WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
Method to execute the query to edit an existing Release
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = ""UPDATE " + RELEASES_KEY + " SET "
+ RELEASE_STATUS_KEY + "='Finished'"
+ " WHERE " + RELEASE_STATUS_KEY + "='Latest' AND "
+ PROJECT_KEY + "=:" + PROJECT_KEY", nativeQuery = true)
Method to execute the query to set as finished the existing latest releases in a project
Link copied to clipboard
@Modifying(clearAutomatically = true)
@Query(value = ""UPDATE " + RELEASES_KEY + " SET "
+ RELEASE_STATUS_KEY + "=:" + RELEASE_STATUS_KEY
+ " WHERE " + IDENTIFIER_KEY + "=:" + IDENTIFIER_KEY", nativeQuery = true)
Method to execute the query to update the status of an existing Release