Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate annotation error...

 
Nina Anderson
Ranch Hand
Posts: 148
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I new to using java annotations and I have no clue what I'm doing. I'm trying to integrate my existing hiberate + spring + struts web application with Hibernate Search (Lucene).

I created a basic POJO class that has java annotation and this is the error I'm getting:




Here's my hibernate abstract data model class:



Here's my hibernate abstract data model class:



What am I doing wrong?? Pls...Help
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not quite seeing why you have an @Entity on the subclass, unless you are missing some Annotations on that class. Maybe you only need the @Entity on the abstract class.

Mark
 
Cameron Wallace McKenzie
author and cow tipper
Saloon Keeper
Posts: 4968
1
Hibernate Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm actually wondering is you forot to add the class to the AnnotationConfiguration object?

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic