[jboss-dev-forums] [Design of EJB 3.0] - Re: Redesign extended persistence context
bstansberry@jboss.com
do-not-reply at jboss.com
Tue Aug 28 17:49:23 EDT 2007
"wolfc" wrote : Given those rules an entity drawn from a xpc and directly refered (from a field) by a SFSB must act as I said.
JPA 3.2.4 says serializing an entity "may result" in a detached entity; it doesn't say it must. So, seems to me we have flexibility.
That said, a developer wanting to write a portable app would need to assume the container is going to detach the entity, since some vendors might. I take it the way an app developer would handle that would be to do a merge of all entities in the @PostActivate callback, correct?
anonymous wrote : Why would you want to keep managed entities around?
Assuming the idea here is this is supposed to resemble pojo programming as much as possible, why would an app developer not want to?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4078946#4078946
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4078946
More information about the jboss-dev-forums
mailing list