• 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: 17309
11
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?

 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!