Win a copy of Node.js Design Patterns: Design and implement production-grade Node.js applications using proven patterns and techniques this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

hibernate a developer's notebook code env

 
Ranch Hand
Posts: 282
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
any update on this, anybody?
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
reply
    Bookmark Topic Watch Topic
  • New Topic