Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-24 Thread Robert .
Thanks for your replies everyone. I think I can make an informed decision now about what to do in each case. I like the flexibility of the @SpringBean and the simplicity of the application object, probably with seperate objects holding the DAOs and services, so not to bloat the application object.

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-24 Thread Martijn Dashorst
And if you have about 100 DAO's, then your application class will get bloated. Martijn -- BREAKING NEWS: Wicket joins the Apache Software Foundation as Apache Wicket Join the wicket community at irc.freenode.net: ##wicket Wicket 1.2.6 contains a very important fix. Download Wicket now! http://wic

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-24 Thread RĂ¼diger Schulz
2007/6/23, Robert . <[EMAIL PROTECTED]>: this is better because if you use applications to hold non-proxied daos > you have to be very careful not to leave a reference to it anywhere. because > dependencies injected throgh @SpringBean are special proxies you dont have > to worry about it because

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Robert .
On 6/23/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > class PersonModel extends LoadableDetachableModel { > >@SpringBean > >private PersonDao dao; > >private final long id; > >public PersonModel(long id) { > > this.id=id; > > InjectorHolder.getInjector().inject(thi

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Robert . <[EMAIL PROTECTED]> wrote: On 6/23/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > On 6/23/07, Robert . <[EMAIL PROTECTED]> wrote: > > > > > > > > On 6/23/07, Flemming Boller < [EMAIL PROTECTED]> wrote: > > > > > > On 6/23/07, Robert . < [EMAIL PROTECTED] > wrote: > > > >

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Robert .
On 6/23/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: On 6/23/07, Robert . <[EMAIL PROTECTED]> wrote: > > > > On 6/23/07, Flemming Boller < [EMAIL PROTECTED]> wrote: > > > > On 6/23/07, Robert . < [EMAIL PROTECTED] > wrote: > > > > There is no silverbullet here. Each solution has its drawbacks. >

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Igor Vaynberg
On 6/23/07, Robert . <[EMAIL PROTECTED]> wrote: On 6/23/07, Flemming Boller <[EMAIL PROTECTED]> wrote: > > On 6/23/07, Robert . <[EMAIL PROTECTED] > wrote: > > > One thing I am struggling with is where I should put my DAO's and data > > > > services. I know about the @SpringBean annotation for

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Robert .
On 6/23/07, Flemming Boller <[EMAIL PROTECTED]> wrote: On 6/23/07, Robert . <[EMAIL PROTECTED] > wrote: > One thing I am struggling with is where I should put my DAO's and data > services. I know about the @SpringBean annotation for components, but > how should I use those in classes such as De

Re: [Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Flemming Boller
Hi I have put my answer in below you mail /Flemming On 6/23/07, Robert . <[EMAIL PROTECTED]> wrote: Hi, I'm trying to make a project using Hibernate, Spring and Wicket. I am have some conceptual difficulties. Would love if someone could share their knowledge or point me in the right direction

[Wicket-user] [Wicket-User] Spring+Hibernate questions

2007-06-23 Thread Robert .
Hi, I'm trying to make a project using Hibernate, Spring and Wicket. I am have some conceptual difficulties. Would love if someone could share their knowledge or point me in the right direction. One thing I am struggling with is where I should put my DAO's and data services. I know about the @Spr