示例#1
0
 public JsonExport(IDatabase database, EntityStore store) {
   conf = ExportConfig.create(database, store);
 }
示例#2
0
 public static <T extends RootEntity> JsonObject toJson(T entity) {
   if (entity == null) return new JsonObject();
   Writer<T> writer = getWriter(entity, ExportConfig.create());
   return writer.write(entity);
 }