@Test public void shouldCreateANews() throws Exception { News news = new News(new NewsId("Richard Wright has died", "EN"), "The keyboard of Pink Floyd has died today"); tx.begin(); em.persist(news); tx.commit(); news = em.find(News.class, new NewsId("Richard Wright has died", "EN")); assertEquals("The keyboard of Pink Floyd has died today", news.getContent()); }
public String getContent() { return content; }
News { public String getContent() { return content; } }
News { public String getContent() { return content; } News();  News(NewsId id, String content); }
News { public String getContent() { return content; } News();  News(NewsId id, String content); NewsId getId(); void setId(NewsId id); String getContent(); void setContent(String content); }
News { public String getContent() { return content; } News();  News(NewsId id, String content); NewsId getId(); void setId(NewsId id); String getContent(); void setContent(String content);  }