• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Strange error whith annotations and Netbeans 6.8

 
Valmir Cinquini
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) I have a project in Eclipse Galileo which uses xml mapping Hibernate

2) Then I've used Eclipse tool to change it to JPA annotations

Up 'til here, everything worked fine

3) Then I migrated to Netbeans 6.8 (because some parts of the hole solution were made using Netbeans 6.7.1 and now 6.8)

Everything compiles fine but I've got some strange warnings


Ok, I know that TIMESTAMP is a sql-99 reserved word, but it works anyway

Another class file

This other class has a var of type StatusDocuments, in the first line of the file, NetBeans shows me the following error:
in class file StatusDocuments.sig: unknows enum constant javax.persistence.temporalType.DATE


Everything is compiling file, but this red icon is bothering me... Could it be some Netbeans bug, since I dont face this error in Eclipse?
 
Valmir Cinquini
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I forgot to mention that the class that has the problem is in another package in another project

I've solved the problem adding ejb3-persistence.jar on the project and the errorhas disappear...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic