Hibernate and DomainLoadableModels

2008-09-18 Thread Ryan
I keep running into a similar issue and it comes down to me missing some fundamental knowledge of Hibernate, but I was hoping someone here could help point me in the right direction. Consider a Hibernate model called Child and it has a property called firstName. Now lets say I use a LoadableModel

Re: Hibernate and DomainLoadableModels

2008-09-18 Thread Igor Vaynberg
open another session/transaction and query it from there -igor On Thu, Sep 18, 2008 at 3:51 PM, Ryan [EMAIL PROTECTED] wrote: I keep running into a similar issue and it comes down to me missing some fundamental knowledge of Hibernate, but I was hoping someone here could help point me

Re: Hibernate and DomainLoadableModels

2008-09-18 Thread Ryan
On Thu, Sep 18, 2008 at 3:51 PM, Ryan [EMAIL PROTECTED] wrote: I keep running into a similar issue and it comes down to me missing some fundamental knowledge of Hibernate, but I was hoping someone here could help point me in the right direction. Consider a Hibernate model called Child and it has

Re: Hibernate and DomainLoadableModels

2008-09-18 Thread James Carman
You're probably better off setting up a Hibernate listener if you want to do audit logging. Check out the Java Persistence with Hibernate book for an example (if you have it). On Thu, Sep 18, 2008 at 6:51 PM, Ryan [EMAIL PROTECTED] wrote: I keep running into a similar issue and it comes down

Re: Hibernate and DomainLoadableModels

2008-09-18 Thread Ryan
Yea I looked into that, unfortunately I need more information than I will have in an interceptor/listener. -Ryan On Thu, Sep 18, 2008 at 07:12:31PM -0400, James Carman exclaimed: You're probably better off setting up a Hibernate listener if you want to do audit logging. Check out the Java

Re: Hibernate and DomainLoadableModels

2008-09-18 Thread James Carman
information than I will have in an interceptor/listener. -Ryan On Thu, Sep 18, 2008 at 07:12:31PM -0400, James Carman exclaimed: You're probably better off setting up a Hibernate listener if you want to do audit logging. Check out the Java Persistence with Hibernate book for an example (if you

integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread mahone9
: http://www.nabble.com/integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462602p19462602.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread James Carman
provide an example, how to solve this??? Any help would kindly appreciate Cheers Phil -- View this message in context: http://www.nabble.com/integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462602p19462602.html Sent from the Wicket - User mailing list archive

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread James Carman
´m looking for another way??? Is there one??? Can somebody provide an example, how to solve this??? Any help would kindly appreciate Cheers Phil -- View this message in context: http://www.nabble.com/integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462602p19462602

AW: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread Agent Mahone
Thanks for ur quick response. I already read this article. But I don´t like this approach calling this creation Proxy stuff when I need it for from a Wicket-Bean. private ContactDao dao = LazyInitProxyFactory.createProxy(ContractDao.class, new IProxyTargetLocator() { public Object

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread mahone9
comments. I apprciate it very much. Cheers Phil -- View this message in context: http://www.nabble.com/integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462602p19462930.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread James Carman
Well, Wicket is an unmanaged framework, so you're going to have a hard time getting it to use spring to instantiate and inject beans for you. However, you can move this proxy creation logic up into a superclass if you wish: public class BasePage extends WebPage { protected Object

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread mahone9
.)... and tell spring if any wicket bean comes into then handle it in a special way. Are there any other options ??? Thanks -- View this message in context: http://www.nabble.com/AW%3A-integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462976p19463709.html Sent from the Wicket - User

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread Igor Vaynberg
wicket bean comes into then handle it in a special way. Are there any other options ??? Thanks -- View this message in context: http://www.nabble.com/AW%3A-integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462976p19463709.html Sent from the Wicket - User mailing list

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread jcgarciam
/integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462602p19464502.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

Re: integration Spring/Wicket/Hibernate problem with injection bean

2008-09-12 Thread Igor Vaynberg
in advance for ur comments. I apprciate it very much. Cheers Phil -- View this message in context: http://www.nabble.com/integration-Spring-Wicket-Hibernate-problem-with-injection-bean-tp19462602p19464502.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?

2008-08-26 Thread James Perry
On Sun, Aug 24, 2008 at 4:11 AM, jpswain [EMAIL PROTECTED] wrote: I'm just curious what everyone is using for transaction management. I have been working with Wicket for a while now (and loving it) on a pet project that also uses Hibernate and Guice. I'm realizing now that I might need/want

Re: My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?

2008-08-26 Thread Maarten Bosteels
that also uses Hibernate and Guice. I'm realizing now that I might need/want transactional support for a couple parts of my app. I can't comment on Guide as it's not something I've evaluated yet however I do like some of its idiosyncrasies. I use Spring/Hibernate as my stack and I find

Re: My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?

2008-08-26 Thread David Blevins
jpswain wrote: I'm just curious what everyone is using for transaction management. I have been working with Wicket for a while now (and loving it) on a pet project that also uses Hibernate and Guice. I'm realizing now that I might need/want transactional support for a couple parts

Re: My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?

2008-08-24 Thread francisco treacy
one thing you can do is use wicket with guice and hibernate, and have warp-persist ( http://www.wideplay.com/guicewebextensions2 ) for transactions. it's a nice stack that i use, a lightweight alternative to spring. and no need for java ee containers. you can have a look here: http://www.richard

Re: My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?

2008-08-24 Thread Nino Saturnino Martinez Vazquez Wael
take a look at the wicket iolite archetype. it uses spring and jpa hiberhatne.. jpswain wrote: I'm just curious what everyone is using for transaction management. I have been working with Wicket for a while now (and loving it) on a pet project that also uses Hibernate and Guice. I'm

My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?

2008-08-23 Thread jpswain
I'm just curious what everyone is using for transaction management. I have been working with Wicket for a while now (and loving it) on a pet project that also uses Hibernate and Guice. I'm realizing now that I might need/want transactional support for a couple parts of my app. I don't have

Re: My Wicket + Hibernate project- Transaction solutions? Java EE w/ Wicket?

2008-08-23 Thread Patrick Angeles
. And yes, you should be able to run Wicket in an EJB3 Container, but you'll have to deal with some boilerplate code that will allow you to inject your EJB3 services into Wicket components... Personally, I would recommend going with Wicket, Spring and Hibernate (or JPA) via spring-javaconfig

Re: Hibernate automatic dirty checking not working

2008-08-20 Thread Uwe Schäfer
shetc schrieb: The problem is that modifications to the object graph are not persisted to the database even though I assume Hibernate's automatic dirty checking would take care of it. just guessing, but make sure that the second page (the modifing one) does open a transaction. i don´t have a

Hibernate automatic dirty checking not working

2008-08-19 Thread shetc
Hi All, I have a Wicket-based project that is using Spring Hibernate to persist data. I have followed the examples set out in the Wicket in Action book. That is: 1) Use the Open Session in View pattern to get a Hibernate session per request -- I am using the Spring OpenSessionInViewFilter

Re: Hibernate automatic dirty checking not working

2008-08-19 Thread shetc
Ignore all this -- I made a very basic error in one of my Hibernate mappings.:blush: -- View this message in context: http://www.nabble.com/Hibernate-automatic-dirty-checking-not-working-tp19060207p19061053.html Sent from the Wicket - User mailing list archive at Nabble.com

How to get Image with Hibernate Spring Based Application

2008-08-10 Thread wiki
)); return stream; } }; add(new Image(propImage, resource));*/ -- View this message in context: http://www.nabble.com/How-to-get-Image-with-Hibernate-Spring-Based-Application-tp18912816p18912816.html Sent from the Wicket - User mailing list

Re: Wicket + Hibernate without Spring and Databinder

2008-08-08 Thread HITECH79
the necessary setup (if you have plain Hibernate, you have hibernate-cfg.xml). 2. I have a EntityManagerUtil class for managing the connection (you could have, e.g., HibernateUtil or something). 3. I use lazy initialization for the Hibernate, i.e., every time I heed the connection I initialize

Re: Wicket + Hibernate without Spring and Databinder

2008-08-08 Thread Martin Makundi
Hibernate, you have hibernate-cfg.xml). 2. I have a EntityManagerUtil class for managing the connection (you could have, e.g., HibernateUtil or something). 3. I use lazy initialization for the Hibernate, i.e., every time I heed the connection I initialize it if it is not yet initialized (think

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread HITECH79
Hallo Martin, can you please send me the hibernate-cfg.xml web.xml and EntityManagerUtil-Classes? Can you please show me your project-structure? Thanks a lot... Cheers Martin Makundi wrote: Hi! I am using this configuration (actually with Jetty, not Tomcat). 1. I have

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread Martin Makundi
can you please send me the hibernate-cfg.xml You can use standard standalone version, use google. web.xml and No changes here to the quickstart. EntityManagerUtil-Classes? Your own, the same as standalone version. ** Martin Can you please show me your project-structure? Thanks

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread Martin Makundi
Hi! I am using this configuration (actually with Jetty, not Tomcat). 1. I have a persistence.xml with all the necessary setup (if you have plain Hibernate, you have hibernate-cfg.xml). 2. I have a EntityManagerUtil class for managing the connection (you could have, e.g., HibernateUtil

Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread HITECH79
Hallo, i need help for a configuration or tutorial or example for a project with Wicket+Hibernate+Tomcat. Please no answers with interaction Spring or framework Databinder. Only Wicket+Hibernate+Tomcat :-) Thanks a lot Cheers... -- View this message in context: http://www.nabble.com

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread Igor Vaynberg
why dont you use the code in spring or databinder as an example then? best way to learn anyways. -igor On Tue, Aug 5, 2008 at 2:31 AM, HITECH79 [EMAIL PROTECTED] wrote: Hallo, i need help for a configuration or tutorial or example for a project with Wicket+Hibernate+Tomcat. Please

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread James Carman
!). It'd be better if you just learned how to shoot a gun and get it over with. :) On Tue, Aug 5, 2008 at 6:36 AM, Martin Makundi [EMAIL PROTECTED] wrote: can you please send me the hibernate-cfg.xml You can use standard standalone version, use google. web.xml and No changes here

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread Brill Pappin
and saying stuff like Hey look, it's Elvis!). It'd be better if you just learned how to shoot a gun and get it over with. :) On Tue, Aug 5, 2008 at 6:36 AM, Martin Makundi [EMAIL PROTECTED] wrote: can you please send me the hibernate-cfg.xml You can use standard standalone version, use google

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread James Carman
, Martin Makundi [EMAIL PROTECTED] wrote: can you please send me the hibernate-cfg.xml You can use standard standalone version, use google. web.xml and No changes here to the quickstart. EntityManagerUtil-Classes? Your own, the same as standalone version. ** Martin Can you please show

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread Igor Vaynberg
!). It'd be better if you just learned how to shoot a gun and get it over with. :) On Tue, Aug 5, 2008 at 6:36 AM, Martin Makundi [EMAIL PROTECTED] wrote: can you please send me the hibernate-cfg.xml You can use standard standalone version, use google. web.xml and No changes here

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread James Carman
and get it over with. :) On Tue, Aug 5, 2008 at 6:36 AM, Martin Makundi [EMAIL PROTECTED] wrote: can you please send me the hibernate-cfg.xml You can use standard standalone version, use google. web.xml and No changes here to the quickstart. EntityManagerUtil-Classes? Your own, the same

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread Brill Pappin
Hey look, it's Elvis!). It'd be better if you just learned how to shoot a gun and get it over with. :) On Tue, Aug 5, 2008 at 6:36 AM, Martin Makundi [EMAIL PROTECTED] wrote: can you please send me the hibernate-cfg.xml You can use standard standalone version, use google. web.xml

Re: Wicket + Hibernate without Spring and Databinder

2008-08-05 Thread n8han
with a desired subset, but we can always make MOAR modules. Nathan -- View this message in context: http://www.nabble.com/Wicket-%2B-Hibernate-without-Spring-and-Databinder-tp18827595p18835350.html Sent from the Wicket - User mailing list archive at Nabble.com

FW: WicketTester, ListView, Hibernate and a custom WebRequestCycle

2008-07-17 Thread David Hendrix
Hi, we're using a custom WebRequestCycle in our application to handle our Hibernate session. In onBeginRequest() the session is opened and closes in onEndRequest(). This works just fine when using Tomcat but fails with WicketTester. WicketTester is constructed using our application

Re: FW: WicketTester, ListView, Hibernate and a custom WebRequestCycle

2008-07-17 Thread Nino Saturnino Martinez Vazquez Wael
See the wicket iolite maven archetype, are it setup like that? David Hendrix wrote: Hi, we're using a custom WebRequestCycle in our application to handle our Hibernate session. In onBeginRequest() the session is opened and closes in onEndRequest(). This works just fine when using Tomcat

RE: FW: WicketTester, ListView, Hibernate and a custom WebRequestCycle

2008-07-17 Thread David Hendrix
- From: Nino Saturnino Martinez Vazquez Wael [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2008 5:42 PM To: users@wicket.apache.org Subject: Re: FW: WicketTester, ListView, Hibernate and a custom WebRequestCycle See the wicket iolite maven archetype, are it setup like that? David Hendrix

Re: FW: WicketTester, ListView, Hibernate and a custom WebRequestCycle

2008-07-17 Thread Timo Rantalaiho
On Thu, 17 Jul 2008, David Hendrix wrote: we're using a custom WebRequestCycle in our application to handle our Hibernate session. In onBeginRequest() the session is opened and closes in onEndRequest(). This works just fine when using Tomcat but fails with WicketTester. That's interesting

Re: FW: WicketTester, ListView, Hibernate and a custom WebRequestCycle

2008-07-17 Thread Nino Saturnino Martinez Vazquez Wael
: Re: FW: WicketTester, ListView, Hibernate and a custom WebRequestCycle See the wicket iolite maven archetype, are it setup like that? David Hendrix wrote: Hi, we're using a custom WebRequestCycle in our application to handle our Hibernate session. In onBeginRequest

DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Joseph P.
field being null or the date field itself : I can put letters into it without error showing up) and everything is sent to the DB, which of course complain of the missing required title (of the required textfield). We are using Hibernate for the DAO, Guice for injection and Wicket 1.3.3. Any clue

Re: DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Joseph P.
://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18379413.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Igor Vaynberg
it out it works fine... shall I open a bug ? bye joseph -- View this message in context: http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18379413.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Ryan Gravener
a bug ? bye joseph -- View this message in context: http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18379413.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Joseph P.
Ok, we will :) bye -- View this message in context: http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18384019.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: DateTextField bug : no validation and giving null to Hibernate

2008-07-10 Thread Joseph P.
It's not better in 1.3.4... I'll open the issue later on. bye Joseph -- View this message in context: http://www.nabble.com/DateTextField-%22bug%22-%3A-no-validation-and-giving-null-to-Hibernate-tp18379140p18384463.html Sent from the Wicket - User mailing list archive at Nabble.com

Hibernate with wicket

2008-04-10 Thread tbt
Hi I'm using a static block to save resources so that hibernate does not have to initialize a session each time a transaction needs to be done. static SessionFactory sessionFactory; static

Re: Hibernate with wicket

2008-04-10 Thread James Carman
There should be only one SessionFactory created during your application's lifecycle (assuming you're using only one database). On Thu, Apr 10, 2008 at 6:31 AM, tbt [EMAIL PROTECTED] wrote: Hi I'm using a static block to save resources so that hibernate does not have to initialize

Re: Hibernate with wicket

2008-04-10 Thread adrienleroy
you can take a look at the databinder project : http://databinder.net/ tbt wrote: Hi I'm using a static block to save resources so that hibernate does not have to initialize a session each time a transaction needs to be done

Re: Hibernate with wicket

2008-04-10 Thread tbt
resources so that hibernate does not have to initialize a session each time a transaction needs to be done. static SessionFactory sessionFactory; static { try

Re: Hibernate with wicket

2008-04-10 Thread Thomas Kappler
: you can take a look at the databinder project : http://databinder.net/ tbt wrote: Hi I'm using a static block to save resources so that hibernate does not have to initialize a session each time a transaction needs to be done

Re: Hibernate with wicket

2008-04-10 Thread cwilkes
tbt wrote: Can anyone tell me the list of jar files that are needed to run databinder. I am having trouble running the baseball example. Have you tried running mvn package? -- View this message in context: http://www.nabble.com/Hibernate-with-wicket-tp16607352p16609086.html Sent from

Re: Hibernate with wicket

2008-04-10 Thread Uwe Schäfer
Nino Saturnino Martinez Vazquez Wael schrieb: interesting... Could be a possible thing for wicket persistence.. think so. however, have done something quite similar myself and dropped it for warp-persist. it is quite minimalistic though and not really feature complete (from my p.o.v.) but it

Re: Maven multi module app using wicket spring hibernate

2008-04-07 Thread Korbinian Bachl - privat
addComponentInstantiationListener(new SpringComponentInjector(this)); in your application's init() function Best Korbinian pxk schrieb: Hello all, I trying to configure a maven multi module app which uses wicket spring and hibernate and unfortunately i'm stuck. I know that this may be the wrong forum to post but since

Maven multi module app using wicket spring hibernate

2008-04-07 Thread pxk
Hello all, I trying to configure a maven multi module app which uses wicket spring and hibernate and unfortunately i'm stuck. I know that this may be the wrong forum to post but since the exception is more relative to wicket i thought i should try here. Anyway enough nagging. The web.xml

Re: Maven multi module app using wicket spring hibernate

2008-04-07 Thread Guðmundur Bjarni
is the preferred way in Wicket 1.3. regards, Guðmundur Bjarni -- View this message in context: http://www.nabble.com/Maven-multi-module-app-using-wicket-spring-hibernate-tp16537252p16537448.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Lazy load exception wicket and hibernate

2008-03-30 Thread Igor Vaynberg
On Sat, Mar 29, 2008 at 8:04 PM, James Carman [EMAIL PROTECTED] wrote: So, I think you just have it backwards. The OpenEntityManagerInViewFilter should be mapped before the WicketFilter. i dont know if my english is broken or what, but i believe that is exactly what ive been saying all

Re: Lazy load exception wicket and hibernate

2008-03-30 Thread lars vonk
Sorry, my bad. I made a typo earlier what may have caused the confusion: On Sat, Mar 29, 2008 at 7:15 AM, lars vonk [EMAIL PROTECTED] wrote: IIRC you should put the OpenEntityManagerInViewFilter definition in the filter-mapping after the WicketFilter otherwise the WicketFilter will come

Re: Lazy load exception wicket and hibernate

2008-03-30 Thread James Carman
On Sun, Mar 30, 2008 at 6:01 AM, lars vonk [EMAIL PROTECTED] wrote: IIRC you should put the OpenEntityManagerInViewFilter definition in the filter-mapping after the WicketFilter otherwise the WicketFilter will come first. I of course meant *before the WicketFilter*, because like I

Re: Lazy load exception wicket and hibernate

2008-03-29 Thread lars vonk
() { return testService.getListOwner(id); } } } Mathias P.W Nilsson wrote: I'm using wicket with hibernate and spring. In my web.xml I have OpenEntityManagerInViewFilter. But when trying to add a dataview to my wicket page I get

Re: Lazy load exception wicket and hibernate

2008-03-29 Thread Igor Vaynberg
wicket with hibernate and spring. In my web.xml I have OpenEntityManagerInViewFilter. But when trying to add a dataview to my wicket page I get the org.hibernate.LazyInitializationException -- View this message in context: http://www.nabble.com/Lazy-load-exception-wicket

Re: Lazy load exception wicket and hibernate

2008-03-29 Thread lars vonk
); } } } Mathias P.W Nilsson wrote: I'm using wicket with hibernate and spring. In my web.xml I have OpenEntityManagerInViewFilter. But when trying to add a dataview to my wicket page I get the org.hibernate.LazyInitializationException

Re: Lazy load exception wicket and hibernate

2008-03-29 Thread Igor Vaynberg
() { return testService.getListOwner(id); } } } Mathias P.W Nilsson wrote: I'm using wicket with hibernate and spring. In my web.xml I have OpenEntityManagerInViewFilter. But when trying to add a dataview

Re: Lazy load exception wicket and hibernate

2008-03-29 Thread James Carman
On Sat, Mar 29, 2008 at 7:15 AM, lars vonk [EMAIL PROTECTED] wrote: What is the order of the filters you defined in your filter-mapping element in the web.xml. IIRC you should put the OpenEntityManagerInViewFilter definition in the filter-mapping after the WicketFilter otherwise the

Re: Lazy load exception wicket and hibernate

2008-03-29 Thread Igor Vaynberg
it will execute _after_ the wicket filter. which is no good because you need lazy loading to work inside wicket filter, so you need oemiv to execute before. and possibly, if wicket filter never calls chain.dofilter it will never execute. -igor On Sat, Mar 29, 2008 at 7:02 PM, James Carman

Re: Lazy load exception wicket and hibernate

2008-03-29 Thread James Carman
On Sat, Mar 29, 2008 at 10:14 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: it will execute _after_ the wicket filter. which is no good because you need lazy loading to work inside wicket filter, so you need oemiv to execute before. and possibly, if wicket filter never calls chain.dofilter it

Re: Lazy load exception wicket and hibernate

2008-03-28 Thread cjlyth
testService.getListOwner(id); } } } Mathias P.W Nilsson wrote: I'm using wicket with hibernate and spring. In my web.xml I have OpenEntityManagerInViewFilter. But when trying to add a dataview to my wicket page I get the org.hibernate.LazyInitializationException

Re: Problem with Hibernate and Caching..

2008-03-25 Thread Bert Radke
On Sun, Mar 23, 2008 at 9:20 PM, Timo Rantalaiho [EMAIL PROTECTED] wrote: Could you show us some code, please? The crystal balls and tea leaves charge extra for easter work :) Thank you for your reply and sorry that i put to much stress on the crystal balls ;) As i was writing a lengthily

Re: Problem with Hibernate and Caching..

2008-03-25 Thread Nino Saturnino Martinez Vazquez Wael
Hmm, if you remove that you will get into trouble. At least I got, thats why I put it in there in the first place.. Problem was when I had entites that were managed between pages.. Eg if you go to pageA and your pet Class loads here, then go to pageB which does some changes to pet and then

Re: Problem with Hibernate and Caching..

2008-03-25 Thread Bert Radke
On Tue, Mar 25, 2008 at 1:41 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hmm, if you remove that you will get into trouble. At least I got, thats why I put it in there in the first place.. Problem was when I had entites that were managed between pages.. Eg if you go

Re: Problem with Hibernate and Caching..

2008-03-25 Thread Nino Saturnino Martinez Vazquez Wael
Bert Radke wrote: On Tue, Mar 25, 2008 at 1:41 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hmm, if you remove that you will get into trouble. At least I got, thats why I put it in there in the first place.. Problem was when I had entites that were managed between

Problem with Hibernate and Caching..

2008-03-23 Thread Bert Radke
Hi all, i noticed in my little test application, that the data is not being refreshed from the database. I use the org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter filter and settings from the blog example. I have no cache configured in the persistence.xml. Any hints on where to

Re: Problem with Hibernate and Caching..

2008-03-23 Thread Timo Rantalaiho
On Sun, 23 Mar 2008, Bert Radke wrote: i noticed in my little test application, that the data is not being refreshed from the database. I use the org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter filter and settings from the blog example. I have no cache configured in the

Re: hibernate

2008-03-19 Thread tbt
Hi How do you create a hibernate session in the class that extends the WebApplication class. is it possible to override protected void init() here and create a single static hibernate session so i can use that session instance in other places. Please provide me with an example. Thanks tbt

Re: hibernate

2008-03-19 Thread Maurice Marrink
I think you are better off using spring or a servletfilter placed in front of your application. try http://www.hibernate.org/43.html maybe you will get inspired :) Maurice On Wed, Mar 19, 2008 at 1:37 PM, tbt [EMAIL PROTECTED] wrote: Hi How do you create a hibernate session in the class

Re: hibernate

2008-03-18 Thread Maurice Marrink
); hibernateConfig.configure(cfg); Your main problem is that you cannot get to the webapps directory from within the application's classloader. Maurice On Tue, Mar 18, 2008 at 1:50 PM, tbt [EMAIL PROTECTED] wrote: Hi I'm new to hibernate and I have a problem as the wicket page class does not detect

Re: hibernate

2008-03-18 Thread Igor Vaynberg
cannot get to the webapps directory from within the application's classloader. Maurice On Tue, Mar 18, 2008 at 1:50 PM, tbt [EMAIL PROTECTED] wrote: Hi I'm new to hibernate and I have a problem as the wicket page class does not detect the hibernate.cfg.xml file The code

Wicket, Hibernate and Models

2008-03-13 Thread carloc
Hi everyone, I have been reading wicket in action recently and I have seen pitfalls of hibernate section. I was wondering about the stuff about hibernate and memory leaks due to hibernate proxy objects maintaining a reference to the session with them Am I doing this wrong then? @SpringBean

Re: Wicket, Hibernate and Models

2008-03-13 Thread Maurice Marrink
I think the memleak will not occur that easily because i believe hibernate removes the session from each proxy / persistent bag after it is closed. But you really should use the LDM (or another sort of lazy loading model) because it will prevent a lot of lazyinitexceptions and other hibernate

Re: Wicket, Hibernate and Models

2008-03-13 Thread Mathias P.W Nilsson
Yes I think you are right. By using the LoadableDetachableModel you prevent the List to be put in the session. -- View this message in context: http://www.nabble.com/Wicket%2C-Hibernate-and-Models-tp16025532p16026919.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: Wicket, Hibernate and Models

2008-03-13 Thread carloc
What should I use when I am accessing hibernate? Should I use a ListView or should I use a refreshing view?\ In the api it says to use refreshingview instead of using listview when using database collections what is better to use? carloc wrote: Hi everyone, I have been reading wicket

Re: Wicket, Hibernate and Models

2008-03-13 Thread Maurice Marrink
I believe refreshingview has better support for reusing items but in our apps we hardly ever use refreshingview. both are suitable for use with hibernate. Maurice On Thu, Mar 13, 2008 at 4:35 PM, carloc [EMAIL PROTECTED] wrote: What should I use when I am accessing hibernate? Should I use

Re: Wicket, Hibernate and Models

2008-03-13 Thread Igor Vaynberg
support for reusing items but in our apps we hardly ever use refreshingview. both are suitable for use with hibernate. Maurice On Thu, Mar 13, 2008 at 4:35 PM, carloc [EMAIL PROTECTED] wrote: What should I use when I am accessing hibernate? Should I use a ListView or should I use

Re: Wicket, Hibernate and Models

2008-03-13 Thread Leszek Gawron
Maurice Marrink wrote: I believe refreshingview has better support for reusing items but in our apps we hardly ever use refreshingview. both are suitable for use with hibernate. Maurice On Thu, Mar 13, 2008 at 4:35 PM, carloc [EMAIL PROTECTED] wrote: What should I use when I am accessing

Re: Wicket, Hibernate and Models

2008-03-13 Thread Peter Ertl
support for reusing items but in our apps we hardly ever use refreshingview. both are suitable for use with hibernate. Maurice On Thu, Mar 13, 2008 at 4:35 PM, carloc [EMAIL PROTECTED] wrote: What should I use when I am accessing hibernate? Should I use a ListView or should I use a refreshing view

Re: Wicket, Hibernate and Models

2008-03-13 Thread Igor Vaynberg
hardly ever use refreshingview. both are suitable for use with hibernate. Maurice On Thu, Mar 13, 2008 at 4:35 PM, carloc [EMAIL PROTECTED] wrote: What should I use when I am accessing hibernate? Should I use a ListView or should I use a refreshing view?\ In the api

Re: Wicket, Hibernate and Models

2008-03-13 Thread Peter Ertl
Gawron [EMAIL PROTECTED] wrote: Maurice Marrink wrote: I believe refreshingview has better support for reusing items but in our apps we hardly ever use refreshingview. both are suitable for use with hibernate. Maurice On Thu, Mar 13, 2008 at 4:35 PM, carloc [EMAIL PROTECTED] wrote: What

Lazy load exception wicket and hibernate

2008-03-11 Thread Mathias P.W Nilsson
Hi! I'm using wicket with hibernate and spring. In my web.xml I have OpenEntityManagerInViewFilter. But when trying to add a dataview to my wicket page I get the org.hibernate.LazyInitializationException: could not initialize proxy - the owning Session was closed. Anyone? -- View this message

Re: Lazy load exception wicket and hibernate

2008-03-11 Thread James Carman
On 3/11/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Hi! I'm using wicket with hibernate and spring. In my web.xml I have OpenEntityManagerInViewFilter. But when trying to add a dataview to my wicket page I get the org.hibernate.LazyInitializationException: could not initialize

Re: Lazy load exception wicket and hibernate

2008-03-11 Thread Mathias P.W Nilsson
Not exactly sure what you mean here since this is my first time trying wicket and hibernate, spring. I have spring annoted daos that I use ex. myDao().getList(); returns a list that has lazy object references. When I try to evoke a method on the lazy object I get the exception. I have solved i

Re: Lazy load exception wicket and hibernate

2008-03-11 Thread James Carman
Show us some code, please. How are you setting things up? On 3/11/08, Mathias P.W Nilsson [EMAIL PROTECTED] wrote: Not exactly sure what you mean here since this is my first time trying wicket and hibernate, spring. I have spring annoted daos that I use myDao().getList(); returns a list

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Martijn Lindhout
hibernate transaction with Wicket. I'd like to implement the session-per- request that is described here http://www.hibernate.org/hib_docs/v3/reference/fr/html_single/#tutorial-firstapp-workingpersistence I think I can commit the transaction and close the session on the onAfterRender

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread James Carman
. It merely opens the session and closes it for you. On 2/13/08, Sébastien Piller [EMAIL PROTECTED] wrote: Hello, I'm searching for a best practice to integrate some hibernate transaction with Wicket. I'd like to implement the session-per-request that is described here http

Re: Handle Hibernate transaction in wicket

2008-02-20 Thread Nino Saturnino Martinez Vazquez Wael
, Sébastien Piller wrote: Hello, I'm searching for a best practice to integrate some hibernate transaction with Wicket. I'd like to implement the session-per- request that is described here http://www.hibernate.org/hib_docs/v3/reference/fr/html_single/#tutorial-firstapp-workingpersistence

<    1   2   3   4   5   6   7   >