Code example for SessionFactory

Methods: close

0
  } 
 
  @After 
  public void tearDown() { 
    if (_sessionFactory != null)
      _sessionFactory.close();
  } 
 
  @Test
  public void test() { 
 
    GeocoderResults results = new GeocoderResults();
 
    GeocoderResult result = new GeocoderResult();
    result.setAddress("101 test blvd");
    result.setAdministrativeArea("wa");
    result.setCity("seattle");
    result.setCountry("usa");
    result.setLatitude(47.0);
    result.setLongitude(-122.0);