Package org.postgis.ejb

Examples of org.postgis.ejb.PersonEntity


        String name = m.getString(IngestMDB.NAME);
        String surname = m.getString(IngestMDB.SURNAME);
        Double lat = m.getDouble(IngestMDB.LATITUDE);
        Double lon = m.getDouble(IngestMDB.LONGITUDE);
       
        PersonEntity person = new PersonEntity();
        person.setName(name);
        person.setSurname(surname);
        person.setLocation(new Point(lon, lat));
        person.setDate(new Date());
        entityManager.persist(person);
       
        // for tutorial info
        System.out.println("INGESTED " + name + " " + surname + " into PostGIS");
      } catch (JMSException e) {
View Full Code Here

TOP

Related Classes of org.postgis.ejb.PersonEntity

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.