ThreadMail(destinatarios, clazz, p));
But, I got a org.hibernate.HibernateException: createCriteria is not valid
without active transaction
when I tried to load an entity in a model to be used in the PageMail.
How can I attach the Transaction to the thread to get this working?
thanks in advance
is not valid
without active transaction
when I tried to load an entity in a model to be used in the PageMail.
How can I attach the Transaction to the thread to get this working?
thanks in advance
--
Fernando Wermus.
www.linkedin.com/in/fernandowermus
:
org.hibernate.HibernateException: createCriteria is not valid without active
transaction
In IMHO all file conf seams to be correct correct... bat i don't undestand
hibenate dosen't find the correct session.
At UI level i load the data with LoadableDetachableModel
IModel contactsModel = new
a simple request i receive the following error.
WicketMessage: Error attaching this container for rendering: [Page class =
ch.myexample.ListContacts, id = 0, version = 0]
Root cause:
org.hibernate.HibernateException: createCriteria is not valid without
active
transaction
In IMHO all file conf
: createCriteria is not valid without
active
transaction
In IMHO all file conf seams to be correct correct... bat i don't
undestand
hibenate dosen't find the correct session.
At UI level i load the data with LoadableDetachableModel
IModel contactsModel = new LoadableDetachableModel
for rendering: [Page class
=
ch.myexample.ListContacts, id = 0, version = 0]
Root cause:
org.hibernate.HibernateException: createCriteria is not valid without
active
transaction
In IMHO all file conf seams to be correct correct... bat i don't
undestand
hibenate dosen't find the correct
:
org.hibernate.HibernateException: createCriteria is not valid without
active
transaction
In IMHO all file conf seams to be correct correct... bat i don't
undestand
hibenate dosen't find the correct session.
At UI level i load the data with LoadableDetachableModel
IModel contactsModel = new
By the way, you might want to check out domdrides. It has all this
implemented and tested for you
On May 8, 2010 8:41 AM, Richard Slide richard.sl...@gmail.com wrote:
I did it.
On Sat, May 8, 2010 at 2:00 PM, James Carman
jcar...@carmanconsulting.comwrote:
Put it on the impl class.
On
get this error always! I don't understand why.
this is my hibernate.cfg.xml
hibernate-configuration
session-factory name=session1
property
name=hibernate.dialectorg.hibernate.dialect.MySQLDialect/property
property
name=hibernate.connection.driver_classcom.mysql.jdbc.Driver/property
You did not setup your transactions properly.
Or you start your transaction manually, or if you like spring, you can let
spring manage it. (just add your transction annotations to your services,
and, done !
On Tue, Oct 6, 2009 at 9:15 AM, Peter Arnulf Lustig u...@yahoo.dewrote:
get this
!
- Ursprüngliche Mail
Von: Pieter Degraeuwe pieter.degrae...@systemworks.be
An: users@wicket.apache.org
Gesendet: Dienstag, den 6. Oktober 2009, 09:29:58 Uhr
Betreff: Re: org.hibernate.HibernateException: createCriteria is not valid
without active transaction
You did not setup your
is not valid
without active transaction
You did not setup your transactions properly.
Or you start your transaction manually, or if you like spring, you can let
spring manage it. (just add your transction annotations to your services,
and, done !
On Tue, Oct 6, 2009 at 9:15 AM, Peter Arnulf
: org.hibernate.HibernateException: createCriteria is not valid
without active transaction
Indeed, when you start a transaction and get an object from the database,
hibernate wil persist changes to that object when you transaction (and thus
sesseion) is still open.
This is normal behaviour.
Note
...@systemworks.be
An: users@wicket.apache.org
Gesendet: Dienstag, den 6. Oktober 2009, 09:49:42 Uhr
Betreff: Re: org.hibernate.HibernateException: createCriteria is not valid
without active transaction
Indeed, when you start a transaction and get an object from the database,
hibernate wil
14 matches
Mail list logo