Session s = openSession();
Transaction tx = s.beginTransaction();
s.persist( tower );
s.flush();
s.clear();
Location loc = new Location();
loc.latitude = tower.latitude;
loc.longitude = tower.longitude;
assertNotNull( s.get( Tower.class, loc ) );
tx.rollback();
s.close();