-->
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.  [ 4 posts ] 
Author Message
 Post subject: Where is @Id
PostPosted: Tue Jun 12, 2007 6:53 am 
Newbie

Joined: Tue Jun 12, 2007 6:44 am
Posts: 13
Location: Brazil
Hi folks

I have downloaded all Hibernate APIs: Core, Anottation, Search, ... and put them into my classpath.

I anottate a class as @Id and press ALT + SHIFT + F in Netbeans to fix imports. ThereĀ“s no matching class for such anottation in any of the jars. The solution is to use a matching class containet in javax.persistence.* (JPA) to solve the problem.

Am I doing sth wrong
Sorry.. I am a newbie.


Top
 Profile  
 
 Post subject: :)
PostPosted: Tue Jun 12, 2007 8:31 am 
Newbie

Joined: Tue Jun 12, 2007 6:44 am
Posts: 13
Location: Brazil
Such a stupid question.
Come on guys. help plz


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 12, 2007 9:30 am 
Beginner
Beginner

Joined: Tue Nov 29, 2005 4:42 pm
Posts: 49
Location: Atlanta, GA
It's in:

javax.persistence.Id

You must not have the ejb3-persistence.jar file in your project. Add it and that will fix it.

Remember to give me your credits for answering your easy post. ;-)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jun 16, 2007 5:04 pm 
Newbie

Joined: Tue Jun 12, 2007 6:44 am
Posts: 13
Location: Brazil
chubbard wrote:
It's in:

javax.persistence.Id

You must not have the ejb3-persistence.jar file in your project. Add it and that will fix it.

Remember to give me your credits for answering your easy post. ;-)


Ok thank you chubbard
:)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.