-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Q: set classpath for eclipse plugin to pick up composite-id?
PostPosted: Fri Apr 07, 2006 4:13 am 
Beginner
Beginner

Joined: Mon Aug 15, 2005 9:00 pm
Posts: 37
Hello,

I have used Hiberate Tools 3.1 beta 4 eclipse plugin to generate hbm.xml and .java out of my current DB. Some tables (e.g. RegionText) have composite-id and corresponding class (RegiontextId.java) are generated successfully.

But after I add generated .hbm.xml (e.g. Regiontext.hbm.xml) to the Console Configurtion, I got following error:

sessionfactory error: component class not found: RegiontextId.

I don't have package for my classes. all .hbm.xml, .java, and .class file are all in the top level dir /testHib, and eclipse is happey with them. I noticed that when I expand the Configuration node in the "Hibernate Configuration" view, I see Regiontext, but not the generated and compiled RegiontextId.

Why is RegiontextId not picked up? I treid to add the top dir /testHib onto the Console Configuration's classpath section, but then I got NPE with I try to refresh/expend root node in the "Hibernate Configuration" view.

Can someone tell me what's the rigth way to do this?

I want to get this working, so I can use the HQL prototype facility from eclipse plugin.

Thx,
Chuck


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 07, 2006 4:43 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
dual post: http://forum.hibernate.org/viewtopic.ph ... 88#2299888

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.