JpaMigrateQuery.executeUpdate(em, "ALTER TABLE PROPERTY ADD COLUMN MESSAGE_ID BIGINT");
Query propertyQuery = em.createNativeQuery("SELECT MESSAGE_ID, PROPERTIES_ID FROM MESSAGE_PROPERTY");
em.getTransaction().commit();
DelegatingResultList propertyNameList = (DelegatingResultList) propertyQuery.getResultList();
ResultList rl = propertyNameList.getDelegate();
for (int i=0; i < rl.size(); i++) {
Object[] results = (Object[]) rl.get(i);
Long messageId = (Long) results[0];
Long propertyId = (Long) results[1];
em.getTransaction().begin();