// add field, getter, setter for orderby clause
// @Resource
// private IUserService userService;
type = new FullyQualifiedJavaType("javax.annotation.Resource");
importedTypes.add(type);
Field field = new Field();
field.setVisibility(JavaVisibility.PRIVATE);
type = new FullyQualifiedJavaType(serviceInterfaceFullName);
importedTypes.add(type);
field.setType(type);
field.setName(serviceObjName); //$NON-NLS-1$
field.addAnnotation("@Resource");
topLevelClass.addField(field);
// private Pagination page;
field = new Field();
field.setVisibility(JavaVisibility.PRIVATE);
type = new FullyQualifiedJavaType("com.eatle.utils.Pagination");
importedTypes.add(type);
field.setType(type);
field.setName("page");
topLevelClass.addField(field);
field = new Field();
field.setVisibility(JavaVisibility.PRIVATE);
type = new FullyQualifiedJavaType(recordFullType);
field.setType(type);
field.setName(recordLowerFullType);
topLevelClass.addField(field);
topLevelClass.addImportedTypes(importedTypes);
// setter getter
addSetPageMethod(topLevelClass, introspectedTable);
addGetPageMethod(topLevelClass, introspectedTable);