try {
List<Route_1_2> routes = ORMManager.get(Route_1_2.class)
.getAll();
LinkedList<Route> newroute = new LinkedList<>();
for (Route_1_2 r2 : routes) {
Route r = new Route();
r.setNice(r2.getNice());
r.setFromAddr(r2.getFromAddr());
r.setFromName(r2.getFromName());
r.setToAddr(r2.getToAddr());
r.setToName(r2.getToName());
r.setSubject(r2.getSubject());
r.setRouteVia(r2.getRouteVia());
newroute.add(r);
}
TableUtils.dropTable(ORMManager.getSource(), Route_1_2.class,
true);
TableUtils.createTable(ORMManager.getSource(), Route.class);