public static void main(String[] args) { ShelfBeanRemote shelfBeanRemote = doLookup(); Shelf shelf = new Shelf(); Article article = new Article(); Item item = new Item(); Seller seller = new Seller(); Catagory catagory = new Catagory(); shelf.setManufacturer("HONGYUAN"); shelf.setShelfCapacity("100"); shelf.setShelfFullInd("NO"); Set<Shelf> shelfs = new TreeSet<Shelf>(); shelfs.add(shelf); article.setEndTs(new Date()); article.setStartTs(new Date()); article.setShelfs(shelfs); Set<Article> articles = new TreeSet<Article>(); articles.add(article); item.setItemName("DATA STRUCTURES AND ALGORITHMS"); item.setEndTs(new Date()); item.setStartTs(new Date()); item.setArticles(articles); Set<Item> items = new TreeSet<Item>(); items.add(item); seller.setSellerLocation("CHENNAI"); seller.setSellerName("HONGYUAN SUPPLIERS"); seller.setItems(items); catagory.setCatagoryName("BOOK"); catagory.setItems(items); item.setCatagory(catagory); item.setSeller(seller); article.setItem(item); shelf.setArticle(article); shelfBeanRemote.saveShelf(shelf); System.out.println("Completed!!!"); }