-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: getTransaction() error in the Hibernate Tutorial
PostPosted: Sat Nov 18, 2006 6:39 am 
Newbie

Joined: Sat Nov 18, 2006 6:32 am
Posts: 1
Hi there,

I am following the first tutorial that comes with Hibernate, I get the following error while compiling the code from EventManager.java file.

D:\HiberExam\src\events\EventManager.java:33: cannot find symbol
symbol : method getTransaction()
location: interface org.hibernate.Session
session.getTransaction().commit();
^
1 error

Now I am not sure how to fix this as the code I am using is also available online.
I would appreciate an pointer.

Thanks

Syed


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 18, 2006 7:01 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
The code that ships in /doc/reference/tutorial compiles fine.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject: Re: getTransaction() error in the Hibernate Tutorial
PostPosted: Thu Jan 10, 2013 4:10 am 
Newbie

Joined: Thu Jan 10, 2013 4:09 am
Posts: 1
Hi would you please tell the exact jars what r u used.I am also getting the same error & not able to fix.
Please help on ths


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.