Package sino.entities

Examples of sino.entities.MongoliaStation


            while (scanner.hasNextLine()) {
                logger.debug("Processing line " + lineNumber);
                String line = scanner.nextLine();
                String[] tokens = getTokens(line, "#", 2, lineNumber);
                if (tokens != null) {
                    MongoliaStation station = new MongoliaStation();
                    station.setName(tokens[0].trim());
                    station.setRussianName(tokens[1].trim());
                    this.entityManager.getTransaction().begin();
                    this.mongoliaStationDao.persist(station);
                    this.entityManager.getTransaction().commit();
                    logger.info("Saved union station: " + station);
                }
View Full Code Here

TOP

Related Classes of sino.entities.MongoliaStation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.