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?
- Keep the unit unit retrieval in session. Html> merge or
continue in the example in session.
Comments
Post a Comment