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
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
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
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
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
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
:
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
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
´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
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
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
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
.)... 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
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
/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
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
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
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
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
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
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
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
.
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
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
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
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
));
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
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
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
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
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
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
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
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
!). 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
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
, 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
!). 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
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
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
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
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
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
-
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
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
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
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
://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
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
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
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
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
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
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
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
resources so that hibernate does not
have to initialize a session each time a transaction needs to be done.
static SessionFactory sessionFactory;
static
{
try
:
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
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
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
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
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
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
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
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
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
() {
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
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
);
}
}
}
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
() {
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
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
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
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
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
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
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
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
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
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
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
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
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
);
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
. 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
, 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
501 - 600 of 652 matches
Mail list logo