Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread James Perry
EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http://jweekend.com/dev/LegUp [2

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread richardwilko
, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread jWeekend
...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Leg-Up-for-Wicket%2C-Spring%2C-Guice%2C-JPA%2C-Warp%2C-EclipseLink%2C-Hibernate-...-projects-tp25769134p25769670.html Sent from the Wicket - User mailing list archive

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread Md. Jahid Shohel
seems like its working now. really cool! On Tue, 2009-10-06 at 16:01 +0200, Md. Jahid Shohel wrote: On Tue, 2009-10-06 at 14:47 +0100, jWeekend wrote: http://jweekend.com/dev/LegUp is that really working? coz , when i clicked on Generate Maven Command button, it took me to

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread Erik Post
you will generate will include enough configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread nino martinez wael
configuration, code and/or some tests to get you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread Gw
Hi, I'm a newbie in Wicket. I use Databinder toolkit (wicket+hibernate) to help me develop DB application rapidly. With the built-in Jetty, the development is quite smooth, however, when trying to run my app on Tomcat 5.5 (Java 5), I faced the following error. I wonder if wicket is really

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread nino martinez wael
...@gmail.com Hi, I'm a newbie in Wicket. I use Databinder toolkit (wicket+hibernate) to help me develop DB application rapidly. With the built-in Jetty, the development is quite smooth, however, when trying to run my app on Tomcat 5.5 (Java 5), I faced the following error. I wonder if wicket

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread jWeekend
you started, quickly. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread Erik Post
. Our archetypes currently support various combinations of Spring, Guice, WarpPersist, JPA (with one or more implementation from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread jWeekend
from EclipseLink, Hibernate, OpenJPA) and Wicket. Let us know if this is useful and if you'd like to see more combinations. Also feel free to raise any issues [2]. Regards - Cemal jWeekend OO Java Technologies, Wicket Training and Development http://jWeekend.com [1] http

RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread Jeffrey Schneller
I took the archetype for Guice, Warp, Hibernate and modified for my application. All my code looks similar to the code from the archetype. The only difference is I am not using the AnnotatinConfiguration but just the plain Configuration. I am also using c3po connection pooling with Oracle

Re: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread Erik Post
: I took the archetype for Guice, Warp, Hibernate and modified for my application.  All my code looks similar to the code from the archetype. The only difference is I am not using the AnnotatinConfiguration but just the plain Configuration.  I am also using c3po connection pooling with Oracle

RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread Jeffrey Schneller
, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects Hi Jeffrey, I have *absolutely* no idea if this will help you, but I had the same with Spring. It started working when i put the injection annotation on the method instead of on the variable. Good luck, Erik On Tue, Oct 6, 2009 at 7:59

RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread Jeffrey Schneller
, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects Thanks for the idea but this didn't work either. Any other ideas? I would expect the archetype to work correctly. -Original Message- From: Erik Post [mailto:eriksen...@gmail.com] Sent: Tuesday, October 06, 2009 2:09 PM

RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread richardwilko
, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects Hi Jeffrey, I have *absolutely* no idea if this will help you, but I had the same with Spring. It started working when i put the injection annotation on the method instead of on the variable. Good luck, Erik On Tue, Oct 6, 2009

RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread Jeffrey Schneller
(UnitOfWork.REQUEST) .transactedWith(TransactionStrategy.LOCAL) .buildModule()); // hibernate stuff // default values from development String connectionUrl = the url; String

RE: Leg Up for Wicket, Spring, Guice, JPA, Warp, EclipseLink, Hibernate ... projects

2009-10-06 Thread richardwilko
(); //warp persist stuff install(PersistenceService.usingHibernate() .across(UnitOfWork.REQUEST) .transactedWith(TransactionStrategy.LOCAL) .buildModule()); // hibernate stuff

Re: Wicket + Hibernate without Spring for lazy loading

2009-10-05 Thread Adrian Merrall
Google for a wicket london weekend presentation and follow up blog on loading jpa entity managers on demand. There have also been various posts relating to using the open session in view Hibernate filter. The JPA blog entry uses the requestcycle to prepare a thread local. The first call to use

RE: Wicket + Hibernate without Spring for lazy loading

2009-10-05 Thread Jeffrey Schneller
- objects to get and persistent data using hibernate using the data objects Business Logic - helper classes to access the data access objects if additional logic needs to be performed before persisting to the db. Wicket Pages - all my wicket pages. The pages call the data access objects to retrieve

Re: Wicket + Hibernate without Spring for lazy loading

2009-10-05 Thread James Perry
to populate lists or tables on a page. I currently have my project set up like: Data objects - POJOs to hold data that comes from or will be persisted to the db Data Access Objects - objects to get and persistent data using hibernate using the data objects Business Logic - helper classes to access

Re: Wicket + Hibernate without Spring for lazy loading

2009-10-05 Thread nino martinez wael
to the db Data Access Objects - objects to get and persistent data using hibernate using the data objects Business Logic - helper classes to access the data access objects if additional logic needs to be performed before persisting to the db. Wicket Pages - all my wicket pages. The pages

Wicket + Guice + Warp-persist + Hibernate

2009-10-05 Thread Jeffrey Schneller
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 service

Wicket + Hibernate without Spring for lazy loading

2009-10-04 Thread Jeffrey Schneller
Is it possible to use Wicket and Hibernate without implementing Spring to do lazy loading of properties through Hibernate? I really don't want to bloat my code to implement Spring but if it is the only way to do it then I will. If that is the case, I guess I need to use

Re: Wicket + Hibernate without Spring for lazy loading

2009-10-04 Thread Igor Vaynberg
see databinder.net -igor On Sun, Oct 4, 2009 at 8:12 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Is it possible to use Wicket and Hibernate without implementing Spring to do lazy loading of properties through Hibernate?  I really don't want to bloat my code to implement Spring

Re: Wicket + Hibernate without Spring for lazy loading

2009-10-04 Thread Petr Fejfar
stuff like Maven, Spring etc... I found out Databinder as well and tried it. But I was not able to make it running with Hibernate, just with HSQLDB. So we've decided to continue with Spring, Maven... We've increased our overhead little bit, but once we define beans, we do not care about them any more

Re: Handling Hibernate session (LazyInitializationException)

2009-09-18 Thread Peter Ertl
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 behind

Re: Handling Hibernate session (LazyInitializationException)

2009-09-17 Thread Matthias Keller
Hi Anton The Problem you encounter is probably because you're holding on to a hibernate object between requests, thus the references are not valid anymore. Have a look at http://wicketinaction.com/2008/09/building-a-smart-entitymodel/ This works for us with hibernate. Matt Anton Komratov

Re: Handling Hibernate session (LazyInitializationException)

2009-09-17 Thread Martin Sachs
hi, you could also use an Aspekt (e.g. with Aspekj) zu reinit all lazy proxies on the next request. The Proxy objects would be detachted and serialized throw the models. With an Aspekt you can re-attach ALL hibernate proxies, without triggering the DB. Martin Anton Komratov schrieb: Hi, I'm

Re: Handling Hibernate session (LazyInitializationException)

2009-09-17 Thread Michael Mosmann
, @SpringBean-Annotation support, Hibernate UnitTest) - Hibernate (Hibernate Annotation Support) mm:) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

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 Support) mm

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:) Am 17.09.2009 um 23:51

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-09-12 Thread Gonzalo Aguilar Delgado
. Will check. I didn't know about filter order... Will also check it. Thanks! And are you sure that your filter ( /hibernate/*), get's hit? What's your wicket filter url, the same or? No, It's different. Can I set it to just /*? Should I do it that way? Well it depends

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-09-12 Thread Gonzalo Aguilar Delgado
. Will check. I didn't know about filter order... Will also check it. Thanks! And are you sure that your filter ( /hibernate/*), get's hit? What's your wicket filter url, the same or? No, It's different. Can I set it to just /*? Should I do it that way? Well it depends

DropDownChoice and hibernate entities

2009-09-04 Thread Iain Reddick
I'm having difficulty in seeing the best-practice way of handling DDCs who's choices are hibernate persisted entities. Obviously the selection in this case would be a reference to a persisted entity, which is inherently bad, as this would put the entity into the session and also result

Re: using hibernate pojo as model instead of dto

2009-08-21 Thread Mathias Nilsson
this message in context: http://www.nabble.com/using-hibernate-pojo-as-model-instead-of-dto-tp25071549p25079082.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr

Re: using hibernate pojo as model instead of dto

2009-08-21 Thread Fernando Wermus
should consider dto. -- View this message in context: http://www.nabble.com/using-hibernate-pojo-as-model-instead-of-dto-tp25071549p25079082.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe

using hibernate pojo as model instead of dto

2009-08-20 Thread tubin gen
I am wondering If it is write to use hibernate pojo entities as model objects for wicket components , or should I create a DTO and use them as model objects , Is there any disadvantages of using entities POJO's as model ?

Re: using hibernate pojo as model instead of dto

2009-08-20 Thread Mathias Nilsson
You can use entities as models. Just use LoadableDetachableModels to avoid LazyLoadingExceptions -- View this message in context: http://www.nabble.com/using-hibernate-pojo-as-model-instead-of-dto-tp25071549p25072411.html Sent from the Wicket - User mailing list archive at Nabble.com

Re: using hibernate pojo as model instead of dto

2009-08-20 Thread fachhoch
Is this is a good design or using DTO is a good desing ? Mathias Nilsson wrote: You can use entities as models. Just use LoadableDetachableModels to avoid LazyLoadingExceptions -- View this message in context: http://www.nabble.com/using-hibernate-pojo-as-model-instead-of-dto

Re: using hibernate pojo as model instead of dto

2009-08-20 Thread Michael Mosmann
LazyLoadingExceptions for short: --- request comes in { open session for hibernate in OSV } render compontent ask model for data model get it from hibernate with primary key render finished throw temporary data away call detach() on model

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-18 Thread nino martinez wael
didn't know about filter order... Will also check it. Thanks! And are you sure that your filter ( /hibernate/*), get's hit? What's your wicket filter url, the same or? No, It's different. Can I set it to just /*? Should I do it that way? Well it depends, if the hibernate filter should

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
: Errors like those are caused when the hibernate session is closed too soon. https://www.hibernate.org/43.html Russ Subject: Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?) From: g...@aguilardelgado.com To: users@wicket.apache.org Date: Fri, 14 Aug

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread nino martinez wael
AFAIK detachable models. 2009/8/14 Russell Simpkins russellsimpk...@hotmail.com: Errors like those are caused when the hibernate session is closed too soon. https://www.hibernate.org/43.html Russ Subject: Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
Ok. Maybe I don't understand... Let me show the situation. I have Spring + portlet + hibernate config with transactions working with the current configuration: I have my DAO objects under package com.level2crm.hibernate.enterprise.dao.contact And model under com.level2crm.model I configured one

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread nino martinez wael
Hmm I have several suggestions. The order of the web filters are important. You could also try with with the wicket spring managed apps, im not sure how that applies. And are you sure that your filter ( /hibernate/*), get's hit? What's your wicket filter url, the same or? 2009/8/17 Gonzalo

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-17 Thread Gonzalo Aguilar Delgado
I have several suggestions. The order of the web filters are important. You could also try with with the wicket spring managed apps, im not sure how that applies. Will check. I didn't know about filter order... Will also check it. Thanks! And are you sure that your filter ( /hibernate

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-14 Thread Gonzalo Aguilar Delgado
!-- Enable the filters for Hibernate (How to check it's working?)-- filter filter-nameopensessioninview/filter-name filter-classorg.springframework.orm.hibernate3.support.OpenSessionInViewFilter/filter-class /filter filter-mapping filter

RE: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-14 Thread Russell Simpkins
Errors like those are caused when the hibernate session is closed too soon. https://www.hibernate.org/43.html Russ Subject: Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?) From: g...@aguilardelgado.com To: users@wicket.apache.org Date: Fri, 14 Aug 2009 11:01

Re: CORRECT portlet+spring+hibernate configuration (Two options, what's right?)

2009-08-14 Thread nino martinez wael
Yup so you should either use open session in view or more preferred AFAIK detachable models. 2009/8/14 Russell Simpkins russellsimpk...@hotmail.com: Errors like those are caused when the hibernate session is closed too soon. https://www.hibernate.org/43.html Russ Subject: Re: CORRECT

DataView/ListView Hibernate question

2009-08-05 Thread Troy Cauble
Short version: What's the right way to View Model lists of Hibernate data that are not Entities (@CollectionsOfElements) and already loaded via an Entity? What if they are Entities, but are already loaded via another Entity (@OneToMany)? Long version: Absorbing the mantra ListView is bad

Re: DataView/ListView Hibernate question

2009-08-05 Thread Igor Vaynberg
: @org.hibernate.annotations.CollectionOfElements private CollectionUser users = new ArrayListUser(); this is not a list - this is a collection. what will hibernate use to back this when it loads? will it still be a List or a Set? for such a mapping you cannot use a listview because the order

Re: DataView/ListView Hibernate question

2009-08-05 Thread Troy Cauble
- this is a collection. what will hibernate use to back this when it loads? will it still be a List or a Set? For Hibernate this is a (small) collection of items. I'm not (intentionally) doing anything that relies on Hibernate backing it with a List internally. Also, I was trying to not let the UI drive

Re: DataView/ListView Hibernate question

2009-08-05 Thread Igor Vaynberg
CollectionUser users = new ArrayListUser(); this is not a list - this is a collection. what will hibernate use to back this when it loads? will it still be a List or a Set? For Hibernate this is a (small) collection of items.  I'm not (intentionally) doing anything that relies on Hibernate backing

Re: problem with pagination when hibernate result transformer is applied

2009-07-23 Thread fachhoch
? is there a solution for this ? James Carman-3 wrote: Do a different query to ask how many there are than the one you use to return the data. On Wed, Jul 22, 2009 at 11:10 AM, tubin genfachh...@gmail.com wrote:   I am using hibernate criteria query to get data for my

problem with pagination when hibernate result transformer is applied

2009-07-22 Thread tubin gen
I am using hibernate criteria query to get data for my AjaxFallbackDefaultDataTable, this datatable also gives me pagination parameters which I am apply to criteria. .The entity I am using for the criteria query has a lazy load collection ,and I need the size of the collection in the view

Re: problem with pagination when hibernate result transformer is applied

2009-07-22 Thread James Carman
Do a different query to ask how many there are than the one you use to return the data. On Wed, Jul 22, 2009 at 11:10 AM, tubin genfachh...@gmail.com wrote:   I am using hibernate criteria query to get data for my AjaxFallbackDefaultDataTable, this datatable also  gives me pagination

Hibernate LazyInitializationException

2009-06-25 Thread jpalmer1026
I am getting an "org.hibernate.LazyInitializationException - could not initialize proxy - no Session" exception when I try to load an object stored in session. I understand but I am not certain about how to fix it with Wicket. In reviewing the Wicket In Action book, it looks like the way to

Re: Hibernate LazyInitializationException

2009-06-25 Thread Martin Sachs
hi you used this.user = (EzdecUser)userModel.getObject(); This would hold in page and not initialized on next request. You have to hold the model in the page. We have also found an alternative way. You can write a simple Aspect with AspectJ to reinit all proxies. This can easily done with

Re: Hibernate LazyInitializationException

2009-06-25 Thread jpalmer1026
this? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Hibernate-LazyInitializationException-tp24204249p24204789.html Sent

Re: Hibernate LazyInitializationException

2009-06-25 Thread Neil Curzon
this? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Hibernate-LazyInitializationException-tp24204249p24204789.html Sent from the Wicket

Re: Wicket + Spring DM + Hibernate

2009-06-23 Thread Daniel Dominik Holúbek
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 been able to use Wicket with Spring DM without problems. No Hibernate though : it really wasn't

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 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 jcar...@carmanconsulting.comwrote: On Tue, Jun 23, 2009 at 8:26 AM, Daniel Dominik Holúbek dankodo...@gmail.com wrote: I appreciate your help, of course :)You know, I'm trying to create a web app

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

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

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

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread Daniel Dominik Holúbek
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 your problem (not getting IoC to work) is not Wicket related but Spring DM related. Cheers

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread James Carman
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 been able to use Wicket with Spring DM without problems. No Hibernate

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread Daniel Dominik Holúbek
OSGi bundle. Actually 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

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread Daniel Dominik Holúbek
. Actually 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

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread James Carman
On Mon, Jun 22, 2009 at 11:11 AM, Daniel Dominik Holúbekdankodo...@gmail.com 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

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread James Carman
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 your problem (not getting IoC to work) is not Wicket related

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread Daniel Dominik Holúbek
, 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 your problem (not getting

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread Daniel Dominik Holúbek
. 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 your problem (not getting IoC to work) is not Wicket related but Spring DM

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread Igor Vaynberg
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 been able to use Wicket with Spring DM without problems. No Hibernate

Re: Wicket + Spring DM + Hibernate

2009-06-22 Thread James Carman
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 your problem (not getting IoC to work) is not Wicket

Re: Wicket + Spring DM + Hibernate

2009-06-21 Thread Daniel Dominik Holúbek
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 your problem (not getting IoC to work) is not Wicket related but Spring DM related. Cheers But yes, there is a chance

Re: Wicket + Spring DM + Hibernate

2009-06-21 Thread James Carman
. Actually 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 your

Re: Wicket + Spring DM + Hibernate

2009-06-21 Thread James Carman
without problems. No Hibernate though : it really wasn't designed for a strictly controlled environment such as OSGi. So, I guess that your problem (not getting IoC to work) is not Wicket related but Spring DM related. Cheers But yes, there is a chance

Re: Hibernate Transactions and Wicket

2009-06-19 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

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/users

Re: Hibernate Transactions and Wicket

2009-06-19 Thread James Carman
, 2009 at 1:43 AM, Ryan wicket-us...@mandrake.us 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 the database

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

Re: Hibernate Transactions and Wicket

2009-06-19 Thread Ryan
and 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 Hibernate and wicket in: * http

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 some

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, Ryanwicket-us...@mandrake.us 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

Hibernate Transactions and Wicket

2009-06-18 Thread Ryan
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 the database at unexpected times. This happens when a transaction

Wicket + Spring DM + Hibernate

2009-06-15 Thread Daniel Dominik Holúbek
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 create modular app with this features: - every module (bundle) has its own applicationContext and DAO classes. - i.e. if I have a module which loads blogs

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úbekdankodo...@gmail.com 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 create

Re: Wicket + Spring DM + Hibernate

2009-06-15 Thread Daniel Dominik Holúbek
...@gmail.comwrote: isnt this a question for the spring dmserver forum? -igor On Mon, Jun 15, 2009 at 3:49 AM, Daniel Dominik Holúbekdankodo...@gmail.com 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
. On Mon, Jun 15, 2009 at 4:38 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: isnt this a question for the spring dmserver forum? -igor On Mon, Jun 15, 2009 at 3:49 AM, Daniel Dominik Holúbekdankodo...@gmail.com wrote: Hello,has anybody here successfully used Spring DM with Hibernate

hibernate lazy loading byte code instrumentation and wicket serialization

2009-06-02 Thread tubin gen
I am thinking of using byte code instrumentation for lazy loading of properties , I use hibernate entities as model for most of my pages and wonderingbyte code instrumentation will cause any issues for serialization ?

Re: hibernate lazy loading byte code instrumentation and wicket serialization

2009-06-02 Thread Igor Vaynberg
considering you should be using LDM models and so you do not have direct references to entities - no. -igor On Tue, Jun 2, 2009 at 1:26 PM, tubin gen fachh...@gmail.com wrote: I am thinking of using byte code instrumentation for lazy loading of properties , I use hibernate entities as model

Where is the Wicket+hibernate example of Francisco Treacy

2009-05-17 Thread Александър Шопов
This message by Francisco Treacy to the mailing list http://osdir.com/ml/users-wicket.apache.org/2009-03/msg00989.html points to an example, that is no longer online. Does anyone else have a similar example? Kind regards: al_shopov

Re: Where is the Wicket+hibernate example of Francisco Treacy

2009-05-17 Thread James Carman
I have one that uses spring, not guice 2009/5/17 Александър Шопов a...@contact.bg: This message by Francisco Treacy to the mailing list http://osdir.com/ml/users-wicket.apache.org/2009-03/msg00989.html points to an example, that is no longer online. Does anyone else have a similar example?

Re: Fast, easy and friendly ORM (Alternative to Hibernate or JPA)

2009-05-13 Thread James Carman
. It provides most demanding features in a small library (522,217   bytes).   10. Easy to learn and use because it just mirrors SQL statements.   11. High performance compared to Hibernate.   12. High productivity compared to Hibernate. You can find Spring and GWT examples from http

Re: Fast, easy and friendly ORM (Alternative to Hibernate or JPA)

2009-05-13 Thread Clint Popetz
in a small library (522,217   bytes).   10. Easy to learn and use because it just mirrors SQL statements.   11. High performance compared to Hibernate.   12. High productivity compared to Hibernate. You can find Spring and GWT examples from http://www.leeonsoft.com/examples.jsp. Whoever

Re: Fast, easy and friendly ORM (Alternative to Hibernate or JPA)

2009-05-13 Thread Igor Vaynberg
performance compared to Hibernate.   12. High productivity compared to Hibernate. You can find Spring and GWT examples from http://www.leeonsoft.com/examples.jsp. Whoever makes a serious comparison of Dreamsource ORM with Hibernate or JPA will be rewarded one license. Any feedback

<    1   2   3   4   5   6   7   >