context.put("metadatas", metadatas);
String[] keyArray = StringUtils.split(keys, ',');
String[] titleArray = StringUtils.split(titles, ',');
for (String codeName : codeNames) {
CodeMeta CodeMeta = entityDao.get(CodeMeta.class, "className", codeName).get(0);
OqlBuilder b = OqlBuilder.hql("from " + codeName
+ " as basecode order by basecode.updatedAt desc,basecode.code");
datas.add(entityDao.search(b));
metadatas.add(new MultiEntityExporter.Metadata(CodeMeta.getName(), keyArray, titleArray));
}
context.put("items", datas);