Package org.latinoware.geodojo.app.entity

Examples of org.latinoware.geodojo.app.entity.Geotwitt


    this.em.getTransaction().commit();
  }
 
  private void inicializaBean()
  {
    this.twitt = new Geotwitt();
    this.passwd = "";
  }
View Full Code Here


    Coordinate coord = new Coordinate(-25.4607 -54.5820);
    Point location = new GeometryFactory().createPoint(coord);
    location.setSRID(4326);
   
   
    Geotwitt twitt = new Geotwitt();
    twitt.setAutor("rafikdabahia");
    twitt.setMensagem("Testando o nosso primeiro #geotwitt com localizacao");
    twitt.setLocation(location);
   
    this.em.getTransaction().begin();
   
    this.em.persist(twitt);
   
View Full Code Here

 
  @Test
  public void atualizar()
  {

    Geotwitt twitt = (Geotwitt) this.em.createQuery("from Geotwitt").setMaxResults(1).getSingleResult();
   
    twitt.setAutor("rafikdabahia");
    twitt.setMensagem("Testando o nosso primeiro #geotwitt com localizacao. UPDATED");
   
   
    this.em.getTransaction().begin();
   
    this.em.merge(twitt);
View Full Code Here

TOP

Related Classes of org.latinoware.geodojo.app.entity.Geotwitt

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.