-->
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: New to Hibernate having problems the tutorial from book
PostPosted: Sun Nov 04, 2007 5:58 am 
Newbie

Joined: Sun Nov 04, 2007 5:35 am
Posts: 7
Location: USA
Hibernate version: 3.2

I'm trying to use the HelloWorld example from the book "Java Persistence with Hibernate". The Helloworld java file imports a persistence package that doesn't exist.

The HelloWorld java file uses the class HibernateUtil I have copied the src from the hibernate doc tutorial to my helloworld folder.

I tried to run the Hibernate demo and it fails on the antlr task

Any thoughts s to were to find the package persistence?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 04, 2007 7:45 am 
Regular
Regular

Joined: Tue Jan 03, 2006 9:20 am
Posts: 74
javax.persistence is found in ejb3-persistence.jar
You'll need that file as well as hiberbate-annotations.jar on your classpath.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 04, 2007 11:47 am 
Newbie

Joined: Sun Nov 04, 2007 5:35 am
Posts: 7
Location: USA
Thanks for the help


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.