writer.annotation(annotation);
writer.annotation(annotation); if (propertyAnnotations) { for (Annotation annotation : property.getAnnotations()) { writer.annotation(annotation);
writer.annotation(annotation);
writer.annotation(annotation); if (propertyAnnotations) { for (Annotation annotation : property.getAnnotations()) { writer.annotation(annotation);
@Override protected void introClassHeader(CodeWriter writer, EntityType model) throws IOException { Type queryType = typeMappings.getPathType(model, model, true); writer.line("@Generated(\"", getClass().getName(), "\")"); TypeCategory category = model.getOriginalCategory(); // serialize annotations only, if no bean types are used if (model.equals(queryType)) { for (Annotation annotation : model.getAnnotations()) { writer.annotation(annotation); } } writer.beginClass(queryType, new ClassType(category, entityPathType, model)); writer.privateStaticFinal(Types.LONG_P, "serialVersionUID", String.valueOf(model.hashCode())); }
@Override protected void introClassHeader(CodeWriter writer, EntityType model) throws IOException { Type queryType = typeMappings.getPathType(model, model, true); writer.line("@Generated(\"", getClass().getName(), "\")"); TypeCategory category = model.getOriginalCategory(); // serialize annotations only, if no bean types are used if (model.equals(queryType)) { for (Annotation annotation : model.getAnnotations()) { writer.annotation(annotation); } } writer.beginClass(queryType, new ClassType(category, entityPathType, model)); writer.privateStaticFinal(Types.LONG_P, "serialVersionUID", String.valueOf(model.hashCode())); }
writer.annotation(Override.class); writer.beginPublicMethod(Types.BOOLEAN_P, "equals", o); writer.line("if (", anyColumnIsNull + ") {"); writer.annotation(Override.class); writer.beginPublicMethod(Types.INT, "hashCode"); writer.line("if (", anyColumnIsNull + ") {"); writer.annotation(Override.class); writer.beginPublicMethod(Types.STRING, "toString");
writer.annotation(Override.class); writer.beginPublicMethod(Types.BOOLEAN_P, "equals", o); writer.line("if (", anyColumnIsNull + ") {"); writer.annotation(Override.class); writer.beginPublicMethod(Types.INT, "hashCode"); writer.line("if (", anyColumnIsNull + ") {"); writer.annotation(Override.class); writer.beginPublicMethod(Types.STRING, "toString");
writer.annotation(annotation); writer.annotation(annotation);
writer.annotation(annotation); writer.annotation(annotation);
writer.annotation(annotation); writer.annotation(annotation);