get rid of LazyLoadException

2013-02-23 Thread Evgheni Emelianov
Hi there, i am looking for a got way to get rid of my LazyLoadException in my Project, I'm using javaee 6 with hibernate 4.1.1 and wicketstuff-javaee-inject and don't know which is the best way to solve it? some good links or examples would help. Evgheni

Re: wicket and JPA

2013-06-14 Thread Evgheni Emelianov
Try first to refresh your entity with entitymanagerObject.refresh(), and use the return object for an update and then merge() Am 14.06.2013 um 10:14 schrieb Sven Meier s...@meiers.net: It depends whether your working with detached or manages entities. Are you using OSIV? Sven On

Re: wicket and JPA

2013-06-14 Thread Evgheni Emelianov
you are right but if you trying to get the entity after detach, you get the cashed version of this object, also you don't have the changes in the database, even if you merge, but if you refresh your entity you get a new updated object with all changes that were made, and the changes will be

Re: wicket and JPA

2013-06-14 Thread Evgheni Emelianov
will be saved once the transaction commits. beginTX() dbObject.setXXX(); dbObject.setYYY(); commitTX() If dbObject is detached you will have to call entityManager.merge(dbObject) before committing the transaction. 2013/6/14 Evgheni Emelianov e.emelia...@gmx.net Try first to refresh

AbstractRequestCycleListener redirect

2013-08-10 Thread Evgheni Emelianov
Hi, i habe a question about redirects in AbstractRequestCycleListener, i have functionality in onBeginRequest(RequestCycle cycle) hich checks wether the requested page should be showed or not, if its not the case then user should be redirected/forwarded to my custom exception page, but as i see

Re: AbstractRequestCycleListener redirect

2013-08-12 Thread Evgheni Emelianov
code ? The response shouldn't be committed so early in the request cycle. On Sat, Aug 10, 2013 at 8:02 PM, Evgheni Emelianov e.emelia...@gmx.netwrote: Hi, i habe a question about redirects in AbstractRequestCycleListener, i have functionality in onBeginRequest(RequestCycle cycle) hich

Re: AbstractRequestCycleListener redirect

2013-08-12 Thread Evgheni Emelianov
i did, but the error comes event without, do you have any advice for me how i can implement redirect in this listener? Evgheni - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: