-->
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.  [ 7 posts ] 
Author Message
 Post subject: Where can I find the hbm2java.class?
PostPosted: Thu Jan 06, 2005 2:29 pm 
Newbie

Joined: Thu Jan 06, 2005 2:14 pm
Posts: 3
Where can I find the hbm2Java class as suggested by the ant build script to generate the accessor java class from the .hbm.xml file?

I opened each hibernate2.jar and hibernate3.jar and cannot found the referenced "net.sf.hibernate.tool.hbm2java.Hbm2JavaTask"

Thanks for any pointer!

jml


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 06, 2005 2:37 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
It's in the hibernate-ext jar


Top
 Profile  
 
 Post subject: Where can I find the hbm2java.class?
PostPosted: Thu Jan 06, 2005 2:45 pm 
Newbie

Joined: Thu Jan 06, 2005 2:14 pm
Posts: 3
Where is hibernate-ext.jar?

I did not see it in hibernate V2.xx or V3 downloads!

jml


Top
 Profile  
 
 Post subject: Where can I find the hbm2java.class?
PostPosted: Thu Jan 06, 2005 2:47 pm 
Newbie

Joined: Thu Jan 06, 2005 2:14 pm
Posts: 3
Sorry, I found the hibernate-ext.jar in the tool download.

jml


Top
 Profile  
 
 Post subject: cant find it!
PostPosted: Fri Mar 25, 2005 1:50 pm 
Newbie

Joined: Fri Mar 25, 2005 1:45 pm
Posts: 10
well, i cant find it.

only have :

cglib-full-2.0.1.jar connector.jar jboss-common.jar jta.jar README.txt
.. commons-collections-2.1.jar connector.licence.txt jboss-jmx.jar jta.licence.txt swarmcache-1.0rc2.jar
ant-1.5.3.jar commons-dbcp-1.1.jar dom4j-1.4.jar jboss-system.jar junit-3.8.1.jar xalan-2.4.0.jar
ant-optional-1.5.3.jar commons-lang-1.0.1.jar ehcache-0.7.jar jcs-1.0-dev.jar log4j-1.2.8.jar xerces-2.4.0.jar
apache.license.txt commons-logging-1.0.3.jar jaas.jar jdbc2_0-stdext.jar odmg-3.0.jar xml-apis.jar
c3p0-0.8.4.5.jar commons-pool-1.1.jar jaas.licence.txt jdbc2_0-stdext.licence.txt oscache-2.0.jar
c3p0.license.txt concurrent-1.3.2.jar jboss-cache.jar jgroups-2.2.1.jar proxool-0.8.3.jar


in there.

nothing with *ext*


Top
 Profile  
 
 Post subject: hibernate-tools.jar
PostPosted: Fri Mar 25, 2005 2:21 pm 
Newbie

Joined: Fri Mar 25, 2005 1:45 pm
Posts: 10
i now found a hibernate-tools.jar within a subdirectory of plugins of :
Hibernate Tools 3.0 alpha 1

however, it does not contain it. :-(


Top
 Profile  
 
 Post subject: ok, found it, BUT.....
PostPosted: Fri Mar 25, 2005 2:40 pm 
Newbie

Joined: Fri Mar 25, 2005 1:45 pm
Posts: 10
<path id="project.class.path">
<pathelement location="lib/"/>
</path>

<!-- Teach Ant how to use Hibernate's code generation tool -->
<taskdef name="hbm2java" classname="net.sf.hibernate.tool.hbm2java.Hbm2JavaTask"
classpathref="project.path.ref"
/>

Still eclipse marks the path stuff in yellow as an error as it doesnt find net.sf.hibernate.tool.hbm2java.Hbm2JavaTask. I copied it into the lib directory.

Whats wrong with:

<path id="project.class.path">
<pathelement location="lib/"/>
</path>

if the .jar file is located in the folder lib relative to build.xml (which is at the top) ?


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