This content has been marked as final.
Show 3 replies
-
1. Re: Datamodel update cycle
matthew.edwards Dec 23, 2005 2:57 PM (in response to js8523)Can't you just use the entity manager to persist the datamodel changes and then flush it.
@PersistenceContext(type = EXTENDED) private EntityManager em; em.persist(dataModel); em.flush();
-
2. Re: Datamodel update cycle
js8523 Dec 23, 2005 5:43 PM (in response to js8523)Sorry to be unclear in the original post.
It is not about the datamodel field being refreshed in the stateful bean (which it is), it is about whether Seam see's fit to outject into the datamodel again to the http context or whether it doesn't bother because it thinks there is no change so it may as well leave the old one there.
The way it tells whether it should bother re 'outjecting' the variable is checking whether the http contect variable is 'equal' to the datamodel variable in the stateful session bean.
Hope this makes more sense.
James -
3. Re: Datamodel update cycle
gavin.king Dec 26, 2005 8:26 PM (in response to js8523)Right, I put a lot of effort into getting this functionality just right. equals() is the only really safe way.