• Post Reply Bookmark Topic Watch Topic
  • New Topic

Hibernate issue  RSS feed

Chad Foor
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I have a problem with hibernate (I think) when I try to deploy to a JBoss 4.2.1 GA app server.

What I'm trying to do - have JBoss run the EJB (dao) tier + Entity beans on a dedicated server (separate from web client apps.)

I developed a series of stateless session beans to talk to an auto-built set of Enitity objects by Netbeans 5.5.1. (Using a pre-existing database built with Sybase 15.) On the setup, I told Netbeans that I was using Hibernate for handling the persistence.)

The deployment seems to work except there's a hiccup that I dont quite understand how to 'fix'.

Here's the beginning of the stack trace when I try to deploy this on JBoss.
11:45:17, 483 INFO [EntityBinder] Bind entity com.chadproject.bo.Xpath on table XPATH
11:45:17, 653 WARN [ServiceController] Problem starting service persistence.units:jar=ChadProjectDataTier.jar, unitName=ChadProjectDataTierPU
org.hibernate.AnnotationException: Column name MODEL_ID of com.chadproject.bo.CPEntity not faound in JoinColumns.referencedColumnName
at org.hibernate.cfg.annotations.TableBinder.bindFk(TableBinder.java:306)
at org.hibernate.cfg.FkSecondPass(FkSecondPass.java:64)
at org.hibernate.cfg.AnnotationConfiguration.processFkSecondPassInOrder(AnnotationConfiguration.java:428)
at org.hibernate.cfg.AnnotationConfiguration.secondPassCompile(AnnotationConfiguration.java:286)

I looked at the JoinColumns between the 2 tables the error was alluding to. The field MODEL_ID is defined / declared in both of them. I dont understand what Hibernate has a problem with here.

I'd appreciate any advice.

Thank you,
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!