entityManager = entityManagerFactory.createEntityManager();
entityManager.getTransaction().begin();
entityManager.find(ProductDL.class,productDL.getId());
EntityGraph<ProductDL> eg=entityManager.createEntityGraph(ProductDL.class);
eg.addSubgraph("contents");
Map<String,Object> props=new HashMap<String,Object>();
props.put(
"javax.persistence.loadgraph",
eg);
productDL=entityManager.find(ProductDL.class,productDL.getId(),props);
entityManager.getTransaction().commit();
entityManager.close();