Method method = new Method();
method.setConstructor(true);
method.setVisibility(JavaVisibility.PUBLIC);
method.setName(innerClass.getType().getShortName());
method.addParameter(new Parameter(FullyQualifiedJavaType.getObjectInstance(), "record")); //$NON-NLS-1$
method.addParameter(new Parameter(new FullyQualifiedJavaType(introspectedTable.getExampleType()), "example")); //$NON-NLS-1$
method.addBodyLine("super(example);"); //$NON-NLS-1$
method.addBodyLine("this.record = record;"); //$NON-NLS-1$
innerClass.addMethod(method);
Field field = new Field();