}
public void testCharDiscriminators() {
EntityManager em = emf.createEntityManager(); // load types
Discriminator discrim = getMapping("CharAbstractEntity")
.getDiscriminator();
assertEquals(new Character('C'), discrim.getValue()); // Generated
assertEquals(JavaTypes.CHAR, discrim.getJavaType());
discrim = getMapping("chrLeaf").getDiscriminator();
assertEquals(new Character('c'), discrim.getValue());
assertEquals(JavaTypes.CHAR, discrim.getJavaType());
discrim = getMapping("CharRootEntity").getDiscriminator();
assertEquals(new Character('R'), discrim.getValue());
assertEquals(JavaTypes.CHAR, discrim.getJavaType());
CharLeafEntity leaf = new CharLeafEntity();
CharRootEntity root = new CharRootEntity();
em.getTransaction().begin();
em.persist(leaf);