-->
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.  [ 5 posts ] 
Author Message
 Post subject: Annonation Problem @ Hibernate Tools for Eclipse 3.2 problem
PostPosted: Mon Oct 02, 2006 3:47 am 
Beginner
Beginner

Joined: Fri Dec 26, 2003 3:21 pm
Posts: 23
Location: Jakarta
Hi All, max,

I try HibernateTools for Eclipse Calisto, and got several strange behavior

if i remove the class map which all of these are hibernate annonation, the hibernate configuration, work well, and i can see the tables.

but if I try to try my HQL, they said that annonationconfiguration is not working.

but when i try to add the class map (pojo with hibernate annonation syntax), the configuration cannot work.

this is the error, when i put my hibernate.cfg.xml with class.

FYI, this annonation are 100% work in my project, and of course using manual way.

org.hibernate.console.HibernateConsoleRuntimeException: Could not load AnnotationConfiguration
org.hibernate.MappingException: Unable to load class declared as <mapping class="org.blueoxygen.cimande.BusinessPartner"/> in the configuration:
org.hibernate.MappingException: Unable to load class declared as <mapping class="org.blueoxygen.cimande.BusinessPartner"/> in the configuration:
java.lang.ClassNotFoundException: org.blueoxygen.cimande.BusinessPartner

_________________
Frans Thamura
BlueOxygen Cimande Workspace
http://cimande.dev.java.net

Intercitra Prima Integrasi
Jakarta, Indonesia


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 02, 2006 11:51 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
you haven't added a proper classpath to the console configuration.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 03, 2006 2:55 am 
Beginner
Beginner

Joined: Fri Dec 26, 2003 3:21 pm
Posts: 23
Location: Jakarta
I add Configuration file to my hibernate.cfg.xml

I add mysql.jar to my classpath

what kind of proper classpath that we need to be put?

can you help me, which one is the missing thing?



Frans

_________________
Frans Thamura
BlueOxygen Cimande Workspace
http://cimande.dev.java.net

Intercitra Prima Integrasi
Jakarta, Indonesia


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 03, 2006 3:40 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
As listed on the wizard and int the docs you need to add the build directory and other needed jars for your POJO's to be loaded.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 03, 2006 3:52 am 
Beginner
Beginner

Joined: Fri Dec 26, 2003 3:21 pm
Posts: 23
Location: Jakarta
I got it, i add the binary folder of my Eclipse project, and run...

thx man.

_________________
Frans Thamura
BlueOxygen Cimande Workspace
http://cimande.dev.java.net

Intercitra Prima Integrasi
Jakarta, Indonesia


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.