Attributepoint attributepoint;
try {
attributepoint = em.getReference(Attributepoint.class, id);
attributepoint.getAttributepointPK();
} catch (EntityNotFoundException enfe) {
throw new NonexistentEntityException("The attributepoint with id " + id + " no longer exists.", enfe);
}
Character character = attributepoint.getCharacter();
if (character != null) {
character.getAttributepointCollection().remove(attributepoint);
character = em.merge(character);