mirror of
https://github.com/querydsl/querydsl.git
synced 2026-07-03 21:07:49 +08:00
#583234 : added comment
This commit is contained in:
parent
18085e0a5a
commit
61d6bc7e92
@ -318,6 +318,7 @@ public class HQLSerializer extends SerializerBase<HQLSerializer> {
|
||||
if (operator.equals(Ops.INSTANCE_OF)) {
|
||||
List<Expr<?>> newArgs = new ArrayList<Expr<?>>(args);
|
||||
Class<?> cl = ((Class<?>) ((Constant<?>) newArgs.get(1)).getConstant());
|
||||
// use discriminator value instead of fqnm
|
||||
if (cl.getAnnotation(DiscriminatorValue.class) != null){
|
||||
newArgs.set(1, EStringConst.create(cl.getAnnotation(DiscriminatorValue.class).value()));
|
||||
}else{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user