1920212223242526
EntityManager em; @PostConstruct public void insert() { for(int i =1; i <= 5; i++) { em.persist(new Product(i + " product", new BigDecimal(10 * i))); } }