Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

Strange error whith annotations and Netbeans 6.8

 
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...
 
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!