BookmarkResource: Use JPA metamodel for type-safe Criteria queries.

Change-Id: I7571a749275d733c9738eed01dad9fb2de7d77ba
diff --git a/gradle.properties b/gradle.properties
index 65efece..7104428 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -19,6 +19,7 @@
 findbugsJsr305Version = 3.0.2
 flexmarkVersion = 0.60.2
 hibernateTypesVersion = 2.9.3
+hibernateVersion = 5.4.12.Final
 jakartaJaccVersion = 1.6.1
 jnaVersion = 5.5.0
 jose4jVersion = 0.7.0