UnidirectionalOneToOneOwned.class,
UnidirectionalOneToOneOwner.class);
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
UnidirectionalOneToOneOwner owner = new UnidirectionalOneToOneOwner();
owner.setMarker("Owner");
UnidirectionalOneToOneOwned owned = new UnidirectionalOneToOneOwned();
owned.setMarker("Owned");
owner.setOwned(owned);
em.persist(owner);
em.getTransaction().commit();
em.close();
}