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.  [ 10 posts ] 
Author Message
 Post subject: error in code generation
PostPosted: Mon Aug 21, 2006 5:08 am 
Newbie

Joined: Mon Aug 21, 2006 4:31 am
Posts: 9
hello
I'm working with HibernateTools-3.2.0.beta6a and eclipse-SDK-3.2-win32 and exoPlatformv1.0.1,
when I want to work with hibernate ,in Code Generation in Exporters I select the DAO code, Domain Code and .hbm.xml ,the files that it makes is track.java, track.hbm.xml and trackHome.java ,in trackHome.java it has "cannot be resolved" errors in all imports (e.g import org.apache.commons.logging.Log;) and does not work.
can anyone help me please? [/b]


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 21, 2006 5:25 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
the code generation doesn't go and add libs automatically (yet).

so you need to add them manually.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 21, 2006 6:28 am 
Newbie

Joined: Mon Aug 21, 2006 4:31 am
Posts: 9
thanks for your help
but I don't know how can I do this in portlets?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 21, 2006 6:34 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
huh ?

it has nothing to do with portlets.

you are generating java code inside eclipse and the generated code (in this case the dao stuff) depends on commons logging in the same way as it depends on hibernate.

The hibernate jar you apparently already have, right ? You just need to add the commons-logging jars too.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 21, 2006 6:50 am 
Newbie

Joined: Mon Aug 21, 2006 4:31 am
Posts: 9
I have commons-logging-1.0.4.jar in eclipse-SDK-3.2-win32\plugins\org.hibernate.eclipse_3.2.0.beta6a\lib\hibernate directory
but it doesn't work.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 21, 2006 8:26 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
those libraries are for the eclipse plugin; not something you have added on your project have you ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 21, 2006 10:40 am 
Newbie

Joined: Mon Aug 21, 2006 4:31 am
Posts: 9
I put the jars in lib of my project but it doesn't work yet


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 21, 2006 10:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
....did you put them into the classpath of the project in eclipse ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 5:15 am 
Newbie

Joined: Mon Aug 21, 2006 4:31 am
Posts: 9
Thank you,It was helpfull


Top
 Profile  
 
 Post subject:
PostPosted: Wed Aug 23, 2006 5:20 am 
Newbie

Joined: Mon Aug 21, 2006 4:31 am
Posts: 9
Thank you,It was helpfull


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 10 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.