Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Well, the first thing you need to realize is Vaadin differs from conventional request/response web framework. Actually, <strong>Vaadin is *<em>event driven</em>*</strong> framework very similar to Swing. It builds a application context from very first click of the user and holds it during whole website visit. The problem is there is no entry request point you can start hibernate session and no response point to close. There are tons of requests during a single click on button. </p> <p>So, <em>entitymanager-per-request</em> pattern is completely useless. It is better to use one standalone em or <em>em-per-session</em> pattern with hibernate.connection_release after_transaction to keep connection pool low.</p> <p>To the JPAContianer, it is not usable as far you need to refresh the container or you have to handle beans with relations. Also, I did not manage to get it working with batch load, so every reading of entry or relation equals one select to DB. Do not support lazy loading.</p> <p>All you need is open EM/session. Try to use suggested patters or open EM/session every transaction and merge your bean first.</p> <p>Your question is quite complex and hard to answer, but I hope these links help you get into:</p> <p><strong>Pojo binding strategy for hibernate</strong></p> <p><a href="https://vaadin.com/forum#!/thread/39712" rel="nofollow">https://vaadin.com/forum#!/thread/39712</a> </p> <p><strong>MVP-lite</strong></p> <p><a href="https://vaadin.com/directory#addon/mvp-lite" rel="nofollow">https://vaadin.com/directory#addon/mvp-lite</a> (stick with event driven pattern)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload