Package cl.molavec.jpa.entities

Examples of cl.molavec.jpa.entities.Item


                quotation.setCustomer(customer);
                quotation.setCompany(company);
                quotation.setQuotationProperties(qp);
                List<Item> itemList = new ArrayList<Item>();
                for(int l=0;l<ITEMS;l++){ //item de la cotización
                  Item item = podamf.manufacturePojo(Item.class);
                  em.persist(item);
                  itemList.add(item);
                }
                quotation.setItems(itemList);
                em.persist(quotation);
View Full Code Here


  @Test
  public void test() {

    EntityManager em = this.emf.createEntityManager();

    Item item = factory.manufacturePojo(Item.class);

    System.out.println("item.getId(): " + item.getId());
   
    em.getTransaction().begin();
    em.persist(item);
    System.out.println("item.getId(): " + item.getId());
    em.getTransaction().commit();

   
    Assert.assertNotEquals(0, item.getId());

  }
View Full Code Here

TOP

Related Classes of cl.molavec.jpa.entities.Item

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.