Sounds like I need to dust of the old deproxify code that Remi wrote for
Stripernate and stick it into Stripersist.
OK. I've updated SVN. Give that a shot and let me know if it works.
Aaron
Lionel wrote:
Aaron Porter wrote:
Hi Lionel,
We'll probably need more than that to go on. Can you paste in some
code?
Here is what I to in a Filter before chaining the request to Stripersist:
User user= (User)httpSession.getAttribute("user");
if(user==null){
user.setUserNbConnect(user.getUserNbConnect()+1);
Stripersist.getEntityManager().persist(user);
httpSession.setAttribute("user", user);
Stripersist.getEntityManager().getTransaction().commit();
}
In the ActionBean:
order = new Order();
order.setUser((User)httpSession.getAttribute("user"));
In the JSP:
<s:select name="order.user">
Here is the class seen by Entityformatter:
class com.package.User_$$_javassist_9
(or cglib)
The only time I've had problems with lazy loading was when I was
trying
to use entities that I had stored in the HttpSession on previous
requests.
this is the case.
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users