Hi Davor,

Never mind the question, the error comes from a invalid table name, I forgot
it's case senstive. I'd like to now if can use the transaction normally,
like:

  Transaction tx = _session.beginTransaction();
        List fruits = _session.createQuery("from Fruit f order by
id").list();
        System.out.println(fruits.size() + " found");
        tx.commit();

the commit will have an excpetion:
[WARN] ThreadCleanupHub Error invoking listener
[EMAIL PROTECTED]:
Transaction not successfully started
org.hibernate.TransactionException: Transaction not successfully started


Angelo Chen wrote:
> 
> Hi Davor, Marcus,
> 
> finally working, thanks for both of you for taking patience to help a
> newbie like me. two more questions:
> 
> 1. should we _seesion.close() after using? I got an exception when doing
> that.
> 

-- 
View this message in context: 
http://www.nabble.com/T5%3A-Hibernate-tf4409684.html#a12590114
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to