annotations

H

hilz

Hi.
I am trying to use Hibernate Annotations, and i get a compile error:

.....path...\MyClass.java:16: cannot find symbol
symbol: class Entity
@Entity

my code looks like this:

@Entity
@Table(name="MYCLASSTABLE")
public class MyClass {
...


is there something special i need to do in order to compile with
annotations?
I have the hibernate and hibernate annotations jars in my classpath, and
i am using jdk 1.5

any help is appreciated.
 
H

hilz

hilz said:
Hi.
I am trying to use Hibernate Annotations, and i get a compile error:

....path...\MyClass.java:16: cannot find symbol
symbol: class Entity
@Entity

my code looks like this:

@Entity
@Table(name="MYCLASSTABLE")
public class MyClass {
...


is there something special i need to do in order to compile with
annotations?
I have the hibernate and hibernate annotations jars in my classpath, and
i am using jdk 1.5

any help is appreciated.


Never mind.... it's been a long day!
I forgot to import the import javax.persistence.....
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,596
Members
45,132
Latest member
TeresaWcq1
Top