private void createDoeFamily() {
   Session s = openSession();
   Transaction tx = s.beginTransaction();
   Detective detective = new Detective();
   detective.setName("John Doe");
   s.persist(detective);
   Suspect suspect = new Suspect();
   suspect.setName("Jane Doe");
   s.persist(suspect);
   tx.commit();
   s.close();
 }