public void destroy(HstringPK id) throws NonexistentEntityException {
EntityManager em = null;
try {
em = getEntityManager();
em.getTransaction().begin();
Hstring hstring;
try {
hstring = em.getReference(Hstring.class, id);
hstring.getHstringPK();
} catch (EntityNotFoundException enfe) {
throw new NonexistentEntityException("The hstring with id " + id + " no longer exists.", enfe);
}
em.remove(hstring);
em.getTransaction().commit();