387388389390391392393394395396397
} catch (UserException re) { // expected } Date d = new Date(2014, 3, 26); ESQLDateID id = new ESQLDateID(d); EDSQLDateID entity = new EDSQLDateID(id); EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); em.persist(id);
109110111112113114115116
fail("Didn't fail!"); } catch (UserException re) { // expected } ESQLDateID id = new ESQLDateID(); assertEquals(ObjectId.class, JPAFacadeHelper.toOpenJPAObjectId(cmd, id).getClass()); }