We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e3a12c5 commit bdcf419Copy full SHA for bdcf419
java/ql/src/semmle/code/java/frameworks/Hibernate.qll
@@ -10,11 +10,11 @@ class HibernateSession extends RefType {
10
}
11
12
/**
13
- * Holds if `m` is a method on `HibernateSession` taking an SQL string as its
14
- * first argument.
+ * Holds if `m` is a method on `HibernateSession`, or a subclass, taking an SQL
+ * string as its first argument.
15
*/
16
predicate hibernateSqlMethod(Method m) {
17
- m.getDeclaringType() instanceof HibernateSession and
+ m.getDeclaringType().getASourceSupertype*() instanceof HibernateSession and
18
m.getParameterType(0) instanceof TypeString and
19
(
20
m.hasName("createQuery") or
0 commit comments