Sunday, 15 July 2012

java - How to access one entity object per 2 http requests in Hibernate? -



java - How to access one entity object per 2 http requests in Hibernate? -

i have restfull spring 4 + hibernate 4 web application. need next when editing entry on ui:

open entry on ui (send request entry id, load hibernate entity object id, send ui json). make changes on ui , click save. receive json on server side , update existing entity object (from step 1)

how can (one entity object per 2 http requests)?

the simple way work on scenario utilize session.

on step 1 add together entity request session , on step 3 entity request session , update entity after remove entity request session.

java spring hibernate spring-mvc jpa

No comments:

Post a Comment