title: How properly create entity in @PostConstruct?
body: <p>I try to create some entity in @PostConstruct in my SpringBoot app</p>
  <pre><code>    @PostConstruct
      void load() {
          for (int i = 0; i &lt; 10; i++) {
              Item item = new Item();
              item.setRating(Math.random());
              imageList.add(new Image());
              item.setImages(imageList);
              itemRepository.save(item);
  }
  </code></pre>
  <p>I have error <strong>detached entity passed to persist: com.amr.project.model.entity.Image;</strong></p>
  <p>I tried adding @Transactional but i find that @Transactional dont work with @PostConstrcut and it`s dont work.</p>
  <p>How i can create entity properly?</p>