* @param args
*/
public static void main(String[] args) {
OrderManager orderManager = (OrderManager) ModelUtil
.getBean("orderManager");
FrontProductionVManager frontProductionVManager = (FrontProductionVManager) ModelUtil
.getBean("frontProductionVManager");
VeggProductionVManager veggProductionVManager = (VeggProductionVManager) ModelUtil
.getBean("veggProductionVManager");
List<Order> orders = orderManager.findAllNotSent();
for (Order order : orders) {
orderManager.lazyLoadOrder(order, new LazyLoadOrderEnum[] {
LazyLoadOrderEnum.COMMENTS, LazyLoadOrderEnum.COLLIES });
order.cacheComments();
order.cacheGarageColliHeight();
try {
orderManager.saveOrder(order);
} catch (ProTransException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
List<Produceable> fronter = frontProductionVManager.findAllApplyable();
StatusCheckerInterface<Transportable> veggChecker = Util
.getVeggChecker();
for (Produceable front : fronter) {