use of org.onebusaway.admin.service.bundle.task.model.GtfsBundleInfo in project onebusaway-application-modules by camsys.
the class GtfsArchiveTask method createMetaData.
private Integer createMetaData(Session session, BundleRequestResponse requestResponse) {
GtfsBundleInfo info = new GtfsBundleInfo();
BundleBuildRequest request = requestResponse.getRequest();
BundleBuildResponse response = requestResponse.getResponse();
info.setBundleId(response.getBundleId());
info.setName(request.getBundleName());
info.setDirectory(request.getBundleDirectory());
info.setStartDate(request.getBundleStartDate().toDate());
info.setEndDate(request.getBundleEndDate().toDate());
info.setTimestamp(new Date());
return (Integer) session.save(info);
}
Aggregations