Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate a developer's notebook code env

 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello:

I tried to follw the examples on hibernate a developer's notebook.
I run 'ant codegen' on ch02, but got the follwoing error:
build.xml:38: taskdef clas
net.sf.hibernate.tool.hbm2java.Hbm2JavaTask cannot be found

I installed hibernate-2.1, but can not find Hbm2JavaTask.class.
Which version of hibernate I need to install in order to run the examples?

Thanks a lot!
 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any update on this, anybody?
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its part of hibernate-extensions, not part of the core. You'll need to download the appropriate version of that and add it to your Ant classpath.
 
sarah Marsh
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know the file name is hibernate-tools.jar, but I can not find the appropriate Jar file with the package net.sf.hibernate.tool.hbm2java.
Any link I should download from? Thanks!
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's in there, honest! Look though the hibernate downloads for the version of hibernate-extensions that matches the version of Hiebrnate you are using.
 
Thomas Fischer
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the packagestructure of Hibernate has changed since then.
Therefore - if you are using a current Version of Hibernate - it should be org.hibernate... instead of net.sf.hibernate...
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Thomas Fischer:
I think the packagestructure of Hibernate has changed since then.
Therefore - if you are using a current Version of Hibernate - it should be org.hibernate... instead of net.sf.hibernate...


True, but the Hibernate extensions stuff only works with v2.n. and Sarah seems to be working with v2.1
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic