diff --git a/querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java b/querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java index 91d5b906e0..7036c89c20 100644 --- a/querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java +++ b/querybean-generator/src/main/java/io/ebean/querybean/generator/SimpleQueryBeanWriter.java @@ -260,7 +260,7 @@ private void writeStaticAliasClass() { private void writeAssocClass() { writer.eol(); - writer.append(" /** Association query bean */").eol(); + writer.append(" /** Association query bean */").eol(); writer.append(" ").append(Constants.AT_GENERATED).eol(); writer.append(" ").append(Constants.AT_TYPEQUERYBEAN).eol(); if (embeddable) { @@ -284,6 +284,7 @@ private void writeAssocClass() { private void writeAssocFilterMany() { writer.eol(); + writer.append(" @SuppressWarnings({\"unchecked\", \"rawtypes\"})").eol(); writer.append(" public final R filterMany(java.util.function.Consumer apply) {", shortName).eol(); writer.append(" final io.ebean.ExpressionList list = io.ebean.Expr.factory().expressionList();", shortName).eol(); writer.append(" final var qb = new Q%s(list);", shortName).eol();