Fix query type error.

This commit is contained in:
Kavin 2022-11-17 16:54:42 +00:00
parent 12ac82393e
commit b065ea8668
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class DatabaseHelper {
public static boolean doesVideoExist(SharedSessionContract s, String id) {
CriteriaBuilder cb = s.getCriteriaBuilder();
CriteriaQuery<Video> cr = cb.createQuery(Video.class);
CriteriaQuery<String> cr = cb.createQuery(String.class);
Root<Video> root = cr.from(Video.class);
cr.select(root.get("id")).where(cb.equal(root.get("id"), id));