Hi All
I am new to Hibernate/EJB3 Annotations and currently I am working on a small toy app combining Spring,Hibernate Annotations. I have deployed the app successfully, but after removing some annotations. If I put those annotations back, it wont even compile from eclipse 3.2(the latest version I belive).
This is the annotation I am planning on originally and since it doesnt compile, I took it out to just go ahead with teh deployment.
@Id(generate=GeneratorType.AUTO)
public int getId() {
return id;
}
But this annotation does compile though!
@Column (length=100)
public String getName() {
return name;
}
So the error message from the IDE I get (its always red high lighted!)
GeneratorType cannot be resolved
The attribute generate is undefined for the annotation type Id
So any pointers on solving this annoying bug is higly appreciated. I have been frustrated for the past 2 days sicne even after enough googling I havent been able to solve it myself.
Thanks
_________________ Ramesh
|