Re: Handling Hibernate session (LazyInitializationException)

2009-09-17 Thread Peter Ertl
://www.wicket-praxis.de/blog/download/ use Link behind "Praxisbuch Wicket Beispielcode" for a maven-based project with: - Spring (open session in view filter, @SpringBean-Annotation support, Hibernate UnitTest) - Hibernate (Hibernate Annotation Su

Re: Handling Hibernate session (LazyInitializationException)

2009-09-17 Thread Michael Mosmann
Am Freitag, den 18.09.2009, 00:35 +0200 schrieb Peter Ertl: > as an further improvement use salve to completely remove your > headache :-) > >http://code.google.com/p/salve thank you.. interesting stuff.. do you have any experience in combination with hibernate? mm:) > A

Re: Handling Hibernate session (LazyInitializationException)

2009-09-18 Thread Peter Ertl
.. do you have any experience in combination with hibernate? mm:) Am 17.09.2009 um 23:51 schrieb Michael Mosmann: Hi, (Solution with no Spring is preferable). Use Spring, because it will limit your headache.. Maybe this is usefull: http://www.wicket-praxis.de/blog/download/ use Link b

Wicket + Guice + Warp-persist + Hibernate

2009-10-05 Thread Jeffrey Schneller
ht on what is wrong or what I am missing. The Hibernate configuration succeeds in the getModule() method. Thanks. Code is below: My Web Application public class WicketApplication extends WebApplication { private PersistenceService se

Re: Trying Hibernate Validator Integration

2009-03-10 Thread Peter Thomas
On Tue, Mar 10, 2009 at 7:35 AM, taha siddiqi wrote: > Hi, > > I was working with Hibernate-validator and thought of sharing the code. > Taha: I thought the ClassValidator will handle all the different cases and annotations for you, see line #89 http://code.google.com/p/perfbench/s

Re: Trying Hibernate Validator Integration

2009-03-10 Thread taha siddiqi
But the problem is when you begin to use the wicket resource files, hibernate-validator comes with its own messages and need to be integrated with wicket ( which i was not able to ) taha On Tue, Mar 10, 2009 at 8:11 PM, Peter Thomas wrote: > On Tue, Mar 10, 2009 at 7:35 AM, taha siddiqi wr

Re: Trying Hibernate Validator Integration

2009-03-10 Thread Peter Thomas
On Tue, Mar 10, 2009 at 9:04 AM, taha siddiqi wrote: > But the problem is when you begin to use the wicket resource files, > hibernate-validator comes with its own messages and need to be > integrated with wicket ( which i was not able to ) There is some info here on how to pass a

Re: Trying Hibernate Validator Integration

2009-03-10 Thread taha siddiqi
but then how to get a ResourceBundle from wicket resource ?? On Tue, Mar 10, 2009 at 8:43 PM, Peter Thomas wrote: > On Tue, Mar 10, 2009 at 9:04 AM, taha siddiqi wrote: > >> But the problem is when you begin to use the wicket resource files, >> hibernate-validator comes wit

Re: Trying Hibernate Validator Integration

2009-03-14 Thread Will Jaynes
In the archives, back in 2007, I see a lot of discussion about Hibernate/JPA validator and Wicket, but I can't find if there was any result from those discussions. Did anything come of it? Will On Tue, Mar 10, 2009 at 11:29 AM, taha siddiqi wrote: > but then how to get a ResourceBun

Re: Trying Hibernate Validator Integration

2009-03-14 Thread taha siddiqi
I was myself very much interested and finally I found wicket-hibernate at http://www.jroller.com/wireframe/entry/hibernateannotationcomponentconfigurator and wicket-jpa at http://perfbench.googlecode.com/svn/trunk/perfbench/wicket-jpa/ Then I came up which something that works for me ( already

Re: Trying Hibernate Validator Integration

2009-03-14 Thread Will Jaynes
ch interested and finally I found > > wicket-hibernate at > > http://www.jroller.com/wireframe/entry/hibernateannotationcomponentconfigurator > > and wicket-jpa at > http://perfbench.googlecode.com/svn/trunk/perfbench/wicket-jpa/ > > Then I came up which something

Re: Trying Hibernate Validator Integration

2009-03-14 Thread taha siddiqi
d. If I add it simply to the form, the validation > behavior doesn't happen. Am I missing something? > Will > > On Sat, Mar 14, 2009 at 9:06 AM, taha siddiqi wrote: > >> I was myself very much interested and finally I found >> >> wicket-hibernat

Re: Trying Hibernate Validator Integration

2009-03-14 Thread Will Jaynes
mething? > > Will > > > > On Sat, Mar 14, 2009 at 9:06 AM, taha siddiqi > wrote: > > > >> I was myself very much interested and finally I found > >> > >> wicket-hibernate at > >> > >> > http://www.jroller.com/wireframe/entr

Re: Trying Hibernate Validator Integration

2009-03-14 Thread taha siddiqi
in your Application::init(); addComponentOnBeforeRenderListener( new HIbernateValidator() ); This will add validators to every @Entity | @Embeddable properties using Hibernate validators which are acting as CompoundModel()'s Objects in a Form taha On Sun, Mar 15, 2009 at 11:03 AM, Will J

Example of DataTable and Hibernate

2009-04-27 Thread HHB
Hey, Do you know any example regarding using DataTable repeater with Spring Dao bean (Hibernate preferably)? Thanks. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: Wicket + Spring DM + Hibernate

2009-06-15 Thread Igor Vaynberg
isnt this a question for the spring dmserver forum? -igor On Mon, Jun 15, 2009 at 3:49 AM, Daniel Dominik Holúbek wrote: > Hello,has anybody here successfully used Spring DM with Hibernate (the OSGi > way) in Wicket? > I am totally hopeless about this... > > The goal is to cre

Re: Wicket + Spring DM + Hibernate

2009-06-15 Thread Daniel Dominik Holúbek
; isnt this a question for the spring dmserver forum? > > -igor > > On Mon, Jun 15, 2009 at 3:49 AM, Daniel Dominik > Holúbek wrote: > > Hello,has anybody here successfully used Spring DM with Hibernate (the > OSGi > > way) in Wicket? > > I am totally hopeless about

Re: Wicket + Spring DM + Hibernate

2009-06-15 Thread Igor Vaynberg
nothing to do with Wicket > itself. > > On Mon, Jun 15, 2009 at 4:38 PM, Igor Vaynberg wrote: > >> isnt this a question for the spring dmserver forum? >> >> -igor >> >> On Mon, Jun 15, 2009 at 3:49 AM, Daniel Dominik >> Holúbek wrote: >> >

Re: Wicket + Spring DM + Hibernate

2009-06-15 Thread djo mos
ually with Spring DM you do have web.xml in web bundles, as described in their reference documentation. I'v been able to use Wicket with Spring DM without problems. No Hibernate though : it really wasn't designed for a strictly controlled environment such as OSGi. So, I guess that yo

Re: Hibernate Transactions and Wicket

2009-06-18 Thread vineet semwal
lazy initialization exception happens whens you try to initialize a object (generally collection) and hibernate session is already closed. merge is not recommended ,it attaches a object back to hibernate session + also cause database update( why will you update a object when you actually need to

Re: Hibernate Transactions and Wicket

2009-06-19 Thread Martin Makundi
> 1) Use DTOs > I think all of these have some issues. Using DTOs is code heavy. I use @Entity objects directly as objects. No overhead. There was some discussion about Hibernate and wicket in: * http://www.nabble.com/JPA-EntityManager-storage-td23888325.html * http://www.mail-archive.com

Re: Hibernate Transactions and Wicket

2009-06-19 Thread James Carman
, 2009 at 1:43 AM, Ryan wrote: > > I have been reading Nick Wiedenbrueck's blog, specifically about > patterns and pitfalls when using wicket with spring and hibernate. > > It seems fairly common for programmers to run into the "issue" of having > entities persisted to

Re: Hibernate Transactions and Wicket

2009-06-19 Thread Ryan
I think your misunderstanding the issue. My application is working fine, no lazy init issues etc. I call merge because I *want* things persisted to the DB. I mentioned the lazy init exception because that is what happens if you clear the hibernate session (and spring will do it if it rolls back a

Re: Hibernate Transactions and Wicket

2009-06-19 Thread Ryan
the hibernate session. On Fri, Jun 19, 2009 at 10:42:16AM +0300, Martin Makundi exclaimed: >> 1) Use DTOs >> I think all of these have some issues. Using DTOs is code heavy. > >I use @Entity objects directly as objects. No overhead. > >There was some discussion about

Re: Hibernate Transactions and Wicket

2009-06-19 Thread Ryan
Consider this use case: 1) User object is read from hibernate, either in a transaction or not 2) User is modified via wicket, and passed wicket's validation 3) User is sent to service tier for further validation, this service is marked as propagation required 4) Validation fails, or for

Re: Hibernate Transactions and Wicket

2009-06-19 Thread James Carman
Mark your transactional method that does validation as readOnly=true On Fri, Jun 19, 2009 at 2:02 PM, Ryan wrote: > Consider this use case: > > 1) User object is read from hibernate, either in a transaction or not > 2) User is modified via wicket, and passed wicket's validation

Re: Wicket + Spring DM + Hibernate

2009-06-21 Thread Daniel Dominik Holúbek
y > > code. And I can't do that via @SpringBean, because that needs to be set > in > > web.xml, and I have no web.xml in my OSGi bundle. > > > Actually with Spring DM you do have web.xml in web bundles, as described in > their reference documentation. > I'v

Re: Wicket + Spring DM + Hibernate

2009-06-21 Thread James Carman
s not being injected in my >> > code. And I can't do that via @SpringBean, because that needs to be set >> in >> > web.xml, and I have no web.xml in my OSGi bundle. >> >> >> Actually with Spring DM you do have web.xml in web bundles, as described in

Re: Wicket + Spring DM + Hibernate

2009-06-21 Thread Daniel Dominik Holúbek
:)To be > >> > honest, I have only a little problem with Spring DM itself (there are > >> > couple > >> > of tutorials out there), I was only curious about whether somebody has > >> > successfully tried this. > >> > For example, now it seems

Re: Wicket + Spring DM + Hibernate

2009-06-21 Thread James Carman
lem with Spring DM itself (there are > > >> > couple > > >> > of tutorials out there), I was only curious about whether somebody has > > >> > successfully tried this. > > >> > For example, now it seems that the dependency is n

Re: Wicket + Spring DM + Hibernate

2009-06-21 Thread Daniel Dominik Holúbek
> > > >> Hi, > > > >> > > > >> On Mon, Jun 15, 2009 at 9:28 PM, Daniel Dominik Holúbek < > > > >> dankodo...@gmail.com> wrote: > > > >> > > > >> > Well, may be, but won't they send me back to this mailingli

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread James Carman
efore? I think I need your help :) >> > > > >> > > > Thanks a lot! >> > > > >> > > > On Tue, Jun 16, 2009 at 2:01 AM, djo mos >> wrote: >> > > > >> > > >> Hi, >> > > >> >> >

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread Daniel Dominik Holúbek
ew ServiceConsumer(); > >> > > > > >> > > > and then access userDao, I'll get a NullPointerException of > course. > >> > > > > >> > > > So has anybody done this before? I think I need your help :) > >> > >

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread Daniel Dominik Holúbek
> >> > > > Panel class, but when I do: >> >> > > > >> >> > > > ServiceConsumer sc = new ServiceConsumer(); >> >> > > > >> >> > > > and then access userDao, I'll get a NullPointerExc

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread James Carman
On Mon, Jun 22, 2009 at 11:11 AM, Daniel Dominik Holúbek wrote: > I don't know :)I can create a Spring bean from Application object, but I > don't know what does it mean - make it context "aware". > That's why I am asking whether somebody has already tried this... Have your application class imple

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread James Carman
t >> >> from >> >> > > the >> >> > > > Panel class, but when I do: >> >> > > > >> >> > > > ServiceConsumer sc = new ServiceConsumer(); >> >> > > > >> >> > &

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread Daniel Dominik Holúbek
t; > > > that I will instantiate a normal class, and then I will access > it > >> >> from > >> >> > > the > >> >> > > > Panel class, but when I do: > >> >> > > > > >> >> > > > ServiceCon

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread Daniel Dominik Holúbek
hing worked fine. >> The >> >> idea >> >> >> was >> >> >> > > > that I will instantiate a normal class, and then I will access >> it >> >> >> from >> >> >> > > the >> >> >>

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread Igor Vaynberg
tached to current thread SpringOsgiExtenderThread-4 >>> >> >> > > > This happens when Spring is trying to instantiate the Panel >>> class. >>> >> >> > > > >>> >> >> > > > I tried this with ordinary c

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread James Carman
>> >> > > > >>>> >> >> > > > Caused by: org.apache.wicket.WicketRuntimeException: There is >>>> no >>>> >> >> > > application >>>> >> >> > > > attached to current threa

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread James Carman
; >>>>> >> >> > > > init-method="init"> >>>>> >> >> > > > >>>>> >> >> > > > >>>>> >> >> > > > >>>>> >> >&g

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Dominik Holúbek
hat Panel class - like this: > >>>>> >> >> > > > > >>>>> >> >> > > > > >>>>> >> >> > > > >>>>> >> >> class="sk.ziwhat.megaweb.loginpanels.prvy.l

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread James Carman
On Tue, Jun 23, 2009 at 4:05 AM, Daniel Dominik Holúbek wrote: > > Okay, but I still don't understand the reason of doing this stuff :)I've > already created the Application bean, and implemented > ApplicationContextAware. > Then the setApplicationContext method gets called, so I created > Applict

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Dominik Holúbek
I appreciate your help, of course :)You know, I'm trying to create a web app consisting of independent modules. Then if I change something in one module, I don't have to redeploy whole application. This can be achieved of course, the only problem is this thing we are currently speaking of. :) But

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Stoch
Hi, I think your problem is that in Wicket the whole Spring injection mechanism is prepared for applications where there is only one ApplicationContext (AC). This AC is hold in the Wicket application instance. So when you are trying to use @SpringBean annotation Wicket tries to inject a bean from

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread James Carman
On Tue, Jun 23, 2009 at 8:26 AM, Daniel Dominik Holúbek wrote: > > I appreciate your help, of course :)You know, I'm trying to create a web app > consisting of independent modules. Then if I change something in one module, > I don't have to redeploy whole application. > This can be achieved of cou

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Dominik Holúbek
Yes, that's the way it's meant to work :) On Tue, Jun 23, 2009 at 3:25 PM, James Carman wrote: > On Tue, Jun 23, 2009 at 8:26 AM, Daniel Dominik Holúbek > wrote: > > > > I appreciate your help, of course :)You know, I'm trying to create a web > app > > consisting of independent modules. Then if

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread James Carman
How many modules do you have? Do you really need to be able to do this with your live production server? I'm just trying to get an idea behind the decision behind going with this sort of an architecture. Perhaps we can offer up an alternative that would work with the existing Wicket stuff so tha

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Igor Vaynberg
isnt a big point of osgi to manage cross-bundle-dependencies? so if you inject panel A using panel A's context how does panel A ever see beans that are defined in module B? eg if panel A needs a sessionfactory which is defined in module B? -igor On Tue, Jun 23, 2009 at 5:36 AM, Daniel Stoch wro

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Stoch
Ok, at least two scenarios are possible: 1. You have a module A with PanelA and you want to inject someDAO bean, which is defined inside module A (in the same module where class PanelA is defined). Then you can use classic @SpringBean annotation, as I wrote in my previous post. 2. You want to use P

Integrating Hibernate Validator with Wicket

2010-01-03 Thread ayman elwany
Hi, Is there any common practice to integrate wicket with hibernate validator ?

Re: Wicket Wizards and Hibernate

2010-01-14 Thread Steve Swinsburg
Hi, Once you have the object built up, you could reattach it to the session with saveOrUpdate() which will figure out if it needs to insert or update. This assumes you are using the Spring Hibernate wrapper templates. cheers, Steve On 14/01/2010, at 9:47 PM, Rodolfo Cartas wrote: > Hi!

Re: Wicket Wizards and Hibernate

2010-01-14 Thread Martin Sachs
. I think this is named conversation. martin Rodolfo Cartas schrieb: > Hi! I'm currently working on a wizard to modify a pojo extracted from > a database with Hibernate. I don't want to commit any changes to the > db before the user finishes the wizard, but the pojo loses referenc

Re: Wicket Wizards and Hibernate

2010-01-17 Thread nino martinez wael
: import org.hibernate.util.SerializationHelper; IT's working nicely the trick as you've discovered when the wizard are over multiple pages.. 2010/1/14 Rodolfo Cartas : > Hi! I'm currently working on a wizard to modify a pojo extracted from a > database with Hibernate. I don

Re: Wicket + Spring 3 + Hibernate

2010-04-15 Thread Sigmar Muuga
ctory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1387) > > > I've simplified my Hibernate configuration to: > > class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> > >

Re: Wicket + Spring 3 + Hibernate

2010-04-15 Thread Steven Haines
nFactory.java:189) at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322) ... 53 more Apr 15, 2010 11:05:11 AM org.apache.catalina.core.ApplicationContext log INFO: Closing Spring root WebApplicationContext -

Re: Wicket + Spring 3 + Hibernate

2010-04-15 Thread Steven Haines
Sorry for the spam, I found the root cause of the problem - I guess there is some kind of circular dependency in Spring/Hibernate that appeared when I integrated the app with Wicket... I dont full understand, but I changed application context XML file to wire by name instead of type and the

Re: Wicket + Spring 3 + Hibernate

2010-04-15 Thread Mauro Ciancio
Take out the 'default-autowire="byName"' from your beans.xml and it will work. Cheers! On Thu, Apr 15, 2010 at 12:21 PM, Steven Haines wrote: > Sorry for the spam, I found the root cause of the problem - I guess there is > some kind of circular dependency in Spring/Hi

Re: Using Hibernate in Wicket?

2007-10-02 Thread Igor Vaynberg
see databinder.net for ideas -igor On 10/2/07, Stanczak Group <[EMAIL PROTECTED]> wrote: > > I'm using Hibernate with the HibernateUtil class. It all works except > when I try to use the HibernateUtil in the Application.onDestroy() > method. I want to have it close the fac

Re: Using Hibernate in Wicket?

2007-10-02 Thread Stanczak Group
Thanks. They are pretty much doing the same as me. I found it was the IDE causing the issue. From some reason Tomcat is deploying it twice. Igor Vaynberg wrote: see databinder.net for ideas -igor On 10/2/07, Stanczak Group <[EMAIL PROTECTED]> wrote: I'm using Hiberna

Re: More on Wicket/Hibernate...

2007-10-04 Thread Stanczak Group
It's really very simple. I'm doing the same thing here. You simple use the HibernateUtil example that is in the Hibernate documentation. Then you simple create a custom RequestCycle by overriding this method in your application. With the request cycle you can open and close Hiberna

Re: More on Wicket/Hibernate...

2007-10-04 Thread Neil B. Cohen
Martijn Dashorst wrote: According to me you can use Hibernate's thread local session if you want (you still need the custom request cycle though!). This removes the need for all the casting and getting. Session.get().createCriteria(SysUser.class).add(.).uniqueResult(); Hibe

Re: More on Wicket/Hibernate...

2007-10-04 Thread Igor Vaynberg
e: > > > >> It's really very simple. I'm doing the same thing here. You simple use > >> the HibernateUtil example that is in the Hibernate documentation. Then > >> you simple create a custom RequestCycle by overriding this method in > >> your applicati

Re: More on Wicket/Hibernate...

2007-10-04 Thread Martijn Dashorst
According to me you can use Hibernate's thread local session if you want (you still need the custom request cycle though!). This removes the need for all the casting and getting. Session.get().createCriteria(SysUser.class).add(.).uniqueResult(); Hibernate session, not Wic

Re: More on Wicket/Hibernate...

2007-10-04 Thread Igor Vaynberg
orst wrote: > >> According to me you can use Hibernate's thread local session if you > >> want (you still need the custom request cycle though!). This removes > >> the need for all the casting and getting. > >> > >> Session.get().create

Re: More on Wicket/Hibernate...

2007-10-04 Thread Michael Laccetti
I'm biting off more than I can chew conveniently but maybe someone can push me in the right direction... I'm attempting to build a fairly simple web application with Wicket, and I'd like to use Hibernate to manage the database access (although other frameworks like Cayenne have bee

Re: More on Wicket/Hibernate...

2007-10-04 Thread Stanczak Group
still need the custom request cycle though!). This removes the need for all the casting and getting. Session.get().createCriteria(SysUser.class).add(.).uniqueResult(); Hibernate session, not Wicket's Martijn --

Re: More on Wicket/Hibernate...

2007-10-04 Thread Nathan Hamblen
Neil B. Cohen wrote: > Anyone have a really simple MySQL example like that? Or an online > tutorial that I could follow? We have one of those: http://databinder.net/site/show/baseball-players I don't know if you want to use Databinder or not, but you aren't going to find a lot of code or tutori

Re: More on Wicket/Hibernate...

2007-10-04 Thread Neil B. Cohen
Thanks - at the moment, I'm not using Spring - I was trying to figure out if I need to use it - that would mean yet another framework to learn at the same time as Wicket and Hibernate nbc Neil B. Cohen wrote: I suspect I'm biting off more than I can chew conveniently but maybe s

Re: More on Wicket/Hibernate...

2007-10-04 Thread Michael Laccetti
g to figure out if I need to use it - that would mean yet another framework to learn at the same time as Wicket and Hibernate nbc - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Wicket/Salve/Hibernate Examples

2009-01-22 Thread francisco treacy
ve and Hibernate? > Does anything like that exist? > > Thanks, > Tauren > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail

Re: Wicket/Salve/Hibernate Examples

2009-01-22 Thread Tauren Mills
2009 at 5:06 PM, Tauren Mills wrote: >> Can anyone point me to any example applications that are along the >> lines of Wicketstuff Phonebook, but that utilize Salve and Hibernate? >> Does anything like that exist? >> >> Thanks, >> Tauren >> >>

Re: Wicket/Salve/Hibernate Examples

2009-01-22 Thread francisco treacy
>> >> On Thu, Jan 22, 2009 at 5:06 PM, Tauren Mills wrote: >>> Can anyone point me to any example applications that are along the >>> lines of Wicketstuff Phonebook, but that utilize Salve and Hibernate? >>> Does anything like that exist? >>> >>>

problem with wicket + spring + hibernate

2010-08-10 Thread Will Martinez A .
org.apache.wicket wicket-ioc ${wicket.version} org.apache.wicket wicket-spring ${wicket.version}

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-01 Thread Dan Retzlaff
s open. I'd say you can either (1) configure Hibernate to load the collections to load unlazily, (2) manually access the collections to force them to initialize in the specific cases you're encountering LIEs, or (3) employ some kind of AOP hack to reinject the new session right before the c

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-01 Thread James Carman
Just make sure your form's model is a LDM too. On Thu, Dec 2, 2010 at 12:23 AM, Nivedan Nadaraj wrote: > Hi All > > I am guessing this is more of a Hibernate thing/issue but if some one has > encountered this and has a explanation that I can probably use from the > Wicket

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-01 Thread Nivedan Nadaraj
t;intermittent" behavior by prior access to the > collection when the original session is open. > > I'd say you can either (1) configure Hibernate to load the collections to > load unlazily, (2) manually access the collections to force them to > initialize in the specific

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-01 Thread Nivedan Nadaraj
Carman wrote: > Just make sure your form's model is a LDM too. > > On Thu, Dec 2, 2010 at 12:23 AM, Nivedan Nadaraj > wrote: > > Hi All > > > > I am guessing this is more of a Hibernate thing/issue but if some one has > > encountered this and has a exp

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-02 Thread vineet semwal
> Thank you > Regards > > > > > On Thu, Dec 2, 2010 at 2:13 PM, James Carman >wrote: > > > Just make sure your form's model is a LDM too. > > > > On Thu, Dec 2, 2010 at 12:23 AM, Nivedan Nadaraj > > wrote: > > > Hi All > > > > >

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-02 Thread Dan Retzlaff
osted. Not only is weaving those Hibernate classes a little tricky and a lot of hacky, it can cause undesirable amounts of entities to be added into the session. James' suggestion of putting the collection behind a Wicket model is more elegant. To this end, you might develop a utility which, giv

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-02 Thread Nivedan Nadaraj
xplain a bit further what your thought was please? > > > > Thank you > > Regards > > > > > > > > > > On Thu, Dec 2, 2010 at 2:13 PM, James Carman > >wrote: > > > > > Just make sure your form's model is a LDM too. > > > >

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-02 Thread vineet semwal
Carman < > ja...@carmanconsulting.com > > > >wrote: > > > > > > > Just make sure your form's model is a LDM too. > > > > > > > > On Thu, Dec 2, 2010 at 12:23 AM, Nivedan Nadaraj < > > shravann...@gmail.com> > >

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-03 Thread Nivedan Nadaraj
t; > > to implement it. > > > > Can you explain a bit further what your thought was please? > > > > > > > > Thank you > > > > Regards > > > > > > > > > > > > > > > > > > > > On Thu, Dec 2, 20

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-03 Thread Nivedan Nadaraj
ection will initialize the collection. If you're still getting an LIE, > there may be another association at play (a child of Phone?). > > Note that I don't fully endorse the session reattachment aspect I posted. > Not only is weaving those Hibernate classes a little tricky a

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-03 Thread vineet semwal
gt; > > Hi James > > > > > > > > > > Thanks for the time. I use the CPM for the whole use case. Mmm..is > > LDM > > > > > mandatory for such a use case? Am open for thoughts just want the > > best > > > > way > > > > >

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-03 Thread James Carman
t;> > to implement it. >> > Can you explain a bit further what your thought was please? >> > >> > Thank you >> > Regards >> > >> > >> > >> > >> > On Thu, Dec 2, 2010 at 2:13 PM, James Carman > > >wrote: >&

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-03 Thread Eelco Hillenius
urely optimizing, and if you still worry, you should fix this by through Hibernate's (or your own) second level cache, not by keeping your model objects inflated between requests. As a general rule, something we often repeat on this list, if you work with Hibernate managed objects in Wicket m

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-05 Thread Nivedan Nadaraj
> > > > > On Thu, Dec 2, 2010 at 12:12 PM, Nivedan Nadaraj < > > > shravann...@gmail.com > > > > > >wrote: > > > > > > > > > > > Hi James > > > > > > > > > > > > Thanks for the time. I use the CPM

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-05 Thread Nivedan Nadaraj
back into the hibernate entity Person's Set and do the Save/Update. Thanks again for the time. Niv On Fri, Dec 3, 2010 at 7:53 PM, James Carman wrote: > Why not read the "phones" into a different list that you "edit" and > when you're done, you update the entity

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-05 Thread Nivedan Nadaraj
As a general rule, something we often repeat on this list, if you work > with Hibernate managed objects in Wicket models, use detachable models > (LDM is a common one) and make sure that these objects are 'deflated' > between requests, meaning that e.g. you only keep references to th

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-06 Thread Nivedan Nadaraj
's (or your own) second level > cache, not by keeping your model objects inflated between requests. > > As a general rule, something we often repeat on this list, if you work > with Hibernate managed objects in Wicket models, use detachable models > (LDM is a common one) and

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-07 Thread nivs
gain Niv -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Hibernate-Related-LazyInitializationException-tp3068534p3075946.html Sent from the Users forum mailing list archive at Nabble.com. - To

Re: Wicket-Hibernate Related LazyInitializationException

2010-12-07 Thread nivs
Eelco Thanks again for your thoughts. Inline with this, I will look at optimizing it and intend to switch to using LDM's. Cheers Niv -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Hibernate-Related-LazyInitializationException-tp3068534p3076005.html Sent

Re: Wicket-Spring Hibernate dao

2011-02-22 Thread Igor Vaynberg
ing. > > My project is setup with Wicket-Spring plus using Hibernate annotation. I > created a Dao object says "CatDao" and created a entity for relational > mapping with hibernate says "Cat". Both are created by using Spring > applicationContext file. > > On

Re: Wicket-Spring Hibernate dao

2011-02-22 Thread Dan Griffin
I think that it happened because spring wrapped a proxy around your bean, and then hibernate couldn`t recognize its class and which table it should look for. I`m not sure if you can get around it, but I agree with Igor that you should create your domain objects with new, rather than inject

Re: Wicket-Spring Hibernate dao

2011-02-22 Thread Nivedan Nadaraj
onfiguration. Hope this helps niv On Wed, Feb 23, 2011 at 6:26 AM, Dan Griffin wrote: > I think that it happened because spring wrapped a proxy around your bean, > and then hibernate couldn`t recognize its class and which table it should > look for. I`m not sure if you can get arou

Re: Wicket-Spring Hibernate dao

2011-03-02 Thread ookpalm
Thanks everyone. I will go for using the new operator for my domain object since there is no simple way to inject and it is not really nescessary to inject bean to object in this case. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-Hibernate-dao

Re: Wicket-Spring Hibernate dao

2011-03-02 Thread James Carman
the new operator for my domain object > since there is no simple way to inject and it is not really nescessary to > inject bean to object in this case. > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-Spring-Hibernate-dao-tp3320134p33

Re: Wicket / Hibernate / Databinder (dead?)

2011-05-28 Thread James Carman
You could check out Wicketopia. It has support for Hibernate. You can run the example application to see how it works. On Sat, May 28, 2011 at 11:48 AM, jbrookover wrote: > Hey all, > > First off, apologies for a potential dual post - I used nabble and posted to > a super-level

Re: Wicket / Hibernate / Databinder (dead?)

2011-05-28 Thread Daniel Toffetti
jbrookover wrote: > > We've been using Wicket 1.4 + Hibernate 3.3 + Databinder 1.3.0 for quite > some time now. I wanted to update to a more recent version of Hibernate, > but Databinder was incompatible and seems pretty dead. > > My question is what do people use f

<    1   2   3   4   5   6   7   >