-->
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.  [ 4 posts ] 
Author Message
 Post subject: Can hibernate generate the *.hbm>file on its own
PostPosted: Fri Jun 30, 2006 4:53 am 
Newbie

Joined: Thu Jun 29, 2006 3:33 am
Posts: 2
HI
Is it possible for hibernate itself to generate the classname.hbml.xml file.

Suppose i have only the class implementation i.e pojo as follows

class Item
{

String item_name;
long id;
String category;

//and all the getter and setter methods
}

Now i do not create the Item.hbm.xml file..can hibernate create on its own

Thanks,
AKshay


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 30, 2006 9:30 pm 
Newbie

Joined: Thu Jun 15, 2006 5:58 pm
Posts: 18
I believe hibernate has its own tool to reverse engineer the database. Check it out in the hibernate website.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 01, 2006 8:27 am 
Beginner
Beginner

Joined: Fri Jun 16, 2006 7:47 am
Posts: 27
There are plugins available which let you generate not only the hbm files,
but also the pojo classes with the setters and getters.

eg: Exadel, myEclipse.

Rate if you find this useful!


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 01, 2006 11:59 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
and of course our own (which is used in both myeclipse and exadel).

see tools.hibernate.org

I actually want to add a "eclipse java model" to "hbm" exporter to the plugins, but it is not a high priority at the moment. Contributions/patched are though very much accepted.

_________________
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.  [ 4 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.