-->
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.  [ 3 posts ] 
Author Message
 Post subject: hbm2java for H3: wrong session.find() generation
PostPosted: Thu Jun 09, 2005 8:34 am 
Newbie

Joined: Wed Jun 08, 2005 8:22 am
Posts: 2
Hi,

after changing from H2 to H3 (AFTER installing all the stuff and libraries) I found out: The hbm2java doesn't exist anymore. SHOCK! How to generate the java code from hmb files now?

I had a nice batch file that called hbm2java and everything was fine. Now I have to install eclipse? Absurd! I found out I can use the new hibernate-tools.jar to generate java code retaining the old batch file.

But: now the tool generates the wrong find methods, it uses "session.find()" which doesn't exist anymore in H3. Is there a way to configure hbm2java so it generates appropriate find methods (something like "session.createQuery(...).list()"). So this is my main question.

My employer wants me to use Hibernate so I'm forced to do. It may be a nice tool but it has no use if it isn't well supported. The code generation tool hbm2java is an essential component and it's irresponsible (and unprofessional, too) to issue the H3 version without those tools. I must say that I DON'T want to be forced to get to know the inwards of H3 (spending useless hours) to get it to work after a simple version change, I just want to use it and that's it.

Don't know if the developers of Hibernate can understand this. Perhaps someone could give me a hint what I could do now to generate my code.

Thanks,

Andy


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 1:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Did you even try to read the docs ?!

It says how to download them and install them !

http://www.hibernate.org/hib_docs/tools/ant/index.html

Everywhere we talk about the eclipse plugins we also state that the same functionallity (code generation wise) is available via ant!

-max

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jun 09, 2005 1:01 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
and please note - the ant tasks has NO dependency on eclipse whatsoever. They are just bundled together.

_________________
Max
Don't forget to rate


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