To add a new row to your table, you simply create an instance of your entity class, set the attributes, and tell the EntityManager to persist the new entity.
为了向您的表格添加一个新行,您只需创建一个实体类的实例,设置其属性,并更新类entitymanager以支持新实体。
It's just important that the ShoppingListManager class does something to persist the user's shopping list item.
重要的是,ShoppingListManager类做了一些事情来持久化用户的购物清单中的商品。
For this example, you'll use JDO to persist the Contact class.
在这个示例中,您将使用JD o持久化contact类。
应用推荐