Java Reference
In-Depth Information
Add an article to the features section:
article = new Article(features);
article.setId(72009);
article.setTitle("Scale to Fit");
em.persist(article);
em.merge(features);
features.addArticle(article);
em.flush();
Add another article to the features section:
article = new Article(features);
article.setId(82009);
article.setTitle("Integrating Applications");
em.persist(article);
features.addArticle(article);
em.flush();
technology = new Section();
technology.setId("Oracle_Mag_Tech_042009");
technology.setSectionName("Technology");
em.persist(technology);
em.merge(edition);
edition.addSection(technology);
Add an article to the technology section:
article = new Article(technology);
article.setId(92009);
article.setTitle("On Wrong and Right");
em.persist(article);
em.merge(technology);
technology.addArticle(article);
em.flush();
Add another article to the technology section:
article = new Article(technology);
article.setId(102009);
article.setTitle("Baselines and Better Plans");
em.persist(article);
technology.addArticle(article);
em.flush();
developer = new Section();
 
Search WWH ::




Custom Search