-->
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: how to create hbm xml and pojo class automatically?
PostPosted: Thu Nov 26, 2009 2:39 am 
Newbie

Joined: Wed Nov 25, 2009 10:28 pm
Posts: 3
hai all,

how to create hbm xml and pojo class automatically? if i have more table in my databse there is a lot of time to create hbm xml and pojo manually. can you help me please!!.


Top
 Profile  
 
 Post subject: Re: how to create hbm xml and pojo class automatically?
PostPosted: Sat Nov 28, 2009 7:34 am 
Newbie

Joined: Sat Nov 28, 2009 7:24 am
Posts: 2
Hi,
I have created step by step from tutorial hibernate.cfg.xml file, console configuration..
In hibernate perspective I see Database and my schema with all tables. Session Factory error: null...
I open Hibernate Code Generation Configurations and there select exporters: Domain Code and Hibernate XML Mappings. Press Run but nothing happens... When I select exporter Schema Documentation I have exception while generating code - IndexOutOfBoundsException ..
Tried hundred times..
Could somebody help?
Thanks.


Top
 Profile  
 
 Post subject: Re: how to create hbm xml and pojo class automatically?
PostPosted: Sat Nov 28, 2009 1:02 pm 
Newbie

Joined: Sat Nov 28, 2009 7:24 am
Posts: 2
Oops! There should be selected "Reverse engineer from JDBC Connection" check box in Main tab.


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.