Storing jpa entities in the jsf backing bean as property -


In the init method of my jsf bean I am calling the service that receives the object from the database, we use hibernate This init method prepares the values ​​on the form the user makes edits and submitting another method is called capturing editing and updating that object in the database. Now at this point I can store the recovery database object as the property of the Backup Bean during the init method or I can retrieve the original database object again in the deposit method called in JSF Bean (but it can be recovered from DB / cache There is another call for). Is there a favorite way here?

  1. Keep the unit unit retrieval in session. Html> merge or continue in the example in session.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -