-->
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.  [ 9 posts ] 
Author Message
 Post subject: Where is or what is the equivalent of Hbm2Java task in Hib3?
PostPosted: Fri May 02, 2008 10:21 pm 
Newbie

Joined: Tue Nov 30, 2004 2:37 pm
Posts: 16
Could someone please tell me what is the equivalent of hbm2java task in Hibernate 3?

And from where it can downloaded or available?

In hibernate3 I only 'schemaexport' task and not hbm2java task?

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 03, 2008 10:28 am 
Newbie

Joined: Tue Nov 30, 2004 2:37 pm
Posts: 16
Anyone?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 2:18 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
It is inside the hibernate-tools.jar.

The svn repository paths for all the projects are in the following link

http://www.hibernate.org/6.html

_________________
Sukirtha


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 7:41 am 
Newbie

Joined: Tue Nov 30, 2004 2:37 pm
Posts: 16
Hi Sukritha,
Thanks for your reply.
I checked the hibernate tool package and the current one points to eclipse plugin/feature and the download link is for hibernate tools beta. I dont find the 'hbm2java' task in there. Could you tell me which version of hbm tools? Plus, I couldn't locate the archived folders for previous hibernate tools version folder ether. The 'SchemaExport' is available in 'hibernate core' package while hbm2java task is not why?

that's why I am trying to find out why there is no clear documentation regarding this tool or what is the equivalent of it.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 8:24 am 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
The tools repository is available at
http://anonhibernate.labs.jboss.com/branches/Branch_3_2/HibernateExt/

Inside the above URL you may get the tools project

Do a check out of the project. That will give you the latest tools source.

The fully qualified class name for the hbm2java task is org.hibernate.tool.ant.Hbm2JavaExporterTask. You can also check look at the org.hibernate.tool.ant.HibernateToolTask class.

Quote:
The 'SchemaExport' is available in 'hibernate core' package while hbm2java task is not why?


That's because, these are not core hibernate functionalities and are optional extensions.

For latest release related details check out
http://www.hibernate.org/255.html

_________________
Sukirtha


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 9:19 am 
Newbie

Joined: Tue Nov 30, 2004 2:37 pm
Posts: 16
Hi Sukritha,
Thanks again for your prompt response.

I think the package name got changed (net.sf....) to (org...) probably that's the reason.

I will definitely check out the package you mentioned.

Again, thanks for your help.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 11:16 am 
Newbie

Joined: Sat Mar 05, 2005 2:36 pm
Posts: 19
Hi,

I think you are looking for the hibernate tools project. The information you need is in the appropriate documentation for that project, but you can also ask questions on the tools forum.

The hbm2java task still exists, but as a parameter to hibernatetool. Refer to the section about <hbm2java> for more information.

There are some examples in the documentation, but if you put the right search terms into a search engine, you will find [url=http://google.com/codesearch?hl=en&lr=&q=hibernatetool+hbm2java+file%3Abuild\.xml%24]good examples from real projects[/url].

I hope this could help,
Kariem


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 05, 2008 11:35 pm 
Senior
Senior

Joined: Mon Feb 25, 2008 1:48 am
Posts: 191
Location: India
Yes. the latest package names start with org. Check the version of tools jar.

_________________
Sukirtha


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 23, 2008 11:22 am 
Newbie

Joined: Tue Nov 30, 2004 2:37 pm
Posts: 16
Kariem,
Thanks for your response I will definitely look for it.
Thx.

[quote="kariem"]Hi,

I think you are looking for the [url=http://tools.hibernate.org]hibernate tools project[/url]. The information you need is in the [url=http://docs.jboss.org/tools/2.1.0.Beta1/hibernatetools/html_single/index.html]appropriate documentation for that project[/url], but you can also ask questions on the [url=http://forum.hibernate.org/viewforum.php?f=6]tools forum[/url].

The [i]hbm2java[/i] task still exists, but as a parameter to [i]hibernatetool[/i]. Refer to [url=http://docs.jboss.org/tools/2.1.0.Beta1/hibernatetools/html_single/index.html#d0e2903]the section about <hbm2java>[/url] for more information.

There are some examples in the documentation, but if you put the right search terms into a search engine, you will find [url=http://google.com/codesearch?hl=en&lr=&q=hibernatetool+hbm2java+file%3Abuild\.xml%24]good examples from real projects[/url].

I hope this could help,
Kariem[/quote]


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