-->
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.  [ 2 posts ] 
Author Message
 Post subject: Eclipse is not identifying @Entity, @Id etc.........
PostPosted: Sat Jan 14, 2006 1:02 pm 
Newbie

Joined: Sat Jan 14, 2006 12:44 pm
Posts: 2
Hi,

I am trying to run a Hibernate Annotation example in Eclipse 3.0 as given below:
I have included all the required jars in classpath and builded the class files but still it is givng error for Annotations as
"Syntax error on tokens, delete these tokens"

Eclipse is not identifying @Entity, @Id etc...........

Please HELP me to sort this out

Please tell me what are the steps to run an Annotation example like one below in eclipse

The below given class is one of many classes

package hibernate.onetomanydependent;

import javax.persistence.*;
import org.hibernate.*;

@Entity(access = AccessType.FIELD)
public class Address {

@Id
public String ID = "-1";

public String Name = "";

@ManyToOne(fetch = FetchType.EAGER)
public Client ClientObj = null;
}



Regards
Muheeb


Top
 Profile  
 
 Post subject: RE: Eclipse is not identifying @Entity, @Id etc.........
PostPosted: Sat Jan 14, 2006 4:09 pm 
Newbie

Joined: Mon Oct 03, 2005 8:39 pm
Posts: 4
Hi Muheeb,

If I remember right, Eclipse 3.0 did not have support for Java 5.0, it was first introduced in Eclipse 3.1, I think your problems will disappear once you upgrade. Remember to have your project compiler set to Java 5.0.

HTH
Sujit


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