This is the codeAbility Sharing Platform! Learn more about the codeAbility Sharing Platform.

Skip to content
Snippets Groups Projects
Commit 6b96af79 authored by Michael Breu's avatar Michael Breu :speech_balloon:
Browse files

A spelling Problem in SQL

parent dad5a98f
2 merge requests!91Bringing JHipster7.6.0 to production,!89Resolve "Restore Gitsearch Integration Tests"
......@@ -11,9 +11,9 @@ import org.springframework.stereotype.Repository;
@Repository
public interface LikesRepository extends JpaRepository<Likes, Long>, JpaSpecificationExecutor<Likes> {
@Query(value = "SELECT * FROM LIKES u where u.user_id = ?1 and exercise_id = ?2", nativeQuery = true)
@Query(value = "SELECT * FROM likes u where u.user_id = ?1 and exercise_id = ?2", nativeQuery = true)
Likes findLikesByUserIDandExerciseID(Integer userID, String exerciseID);
@Query(value = "SELECT COUNT(u.exercise_id) FROM LIKES u where exercise_id = ?1", nativeQuery = true)
@Query(value = "SELECT COUNT(u.exercise_id) FROM likes u where exercise_id = ?1", nativeQuery = true)
Integer findNumberOfLikesByExerciseID(String exerciseID);
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment