Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS 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 ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Strange error whith annotations and Netbeans 6.8

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
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...
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic