-->
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.  [ 6 posts ] 
Author Message
 Post subject: problem in creating hbm.xml file
PostPosted: Thu Apr 01, 2010 9:32 am 
Newbie

Joined: Thu Apr 01, 2010 9:20 am
Posts: 4
Hi ,
I'm new to hibernate.
I have a problem while creating hbm.xml file in hibernate perspective.
To create a hbm.xml file Right-click on project->New->Hibernate XML Mapping File
It should show me a wizard like

"Create Hibernate XML Mapping file (hbm.xml)
Create a new XML Mapping File

Enter or select the parent folder

File name
"

But it is showing different wizard like

"Create Hibernate XML Mapping file(s)
Add classes and packages or wizard will create an empty mapping file
Buttons-->Add Class
Add Package
Remove
"

Did anyone face this problem. Please help me.


Top
 Profile  
 
 Post subject: Re: problem in creating hbm.xml file
PostPosted: Thu Apr 01, 2010 9:43 am 
Regular
Regular

Joined: Wed Mar 10, 2010 4:48 am
Posts: 106
Right click a map/package where you want the hbm.xml => New => Other.

Then you should get the wizard. See this images:
Image
Image
Image


Top
 Profile  
 
 Post subject: Re: problem in creating hbm.xml file
PostPosted: Thu Apr 01, 2010 9:47 am 
Newbie

Joined: Thu Apr 01, 2010 9:20 am
Posts: 4
Thanks for the reply.

Could you please tell me how to paste the images so that I can post my images.


Top
 Profile  
 
 Post subject: Re: problem in creating hbm.xml file
PostPosted: Thu Apr 01, 2010 10:01 am 
Regular
Regular

Joined: Wed Mar 10, 2010 4:48 am
Posts: 106
You have to put them online on a server. I used my own.


Top
 Profile  
 
 Post subject: Re: problem in creating hbm.xml file
PostPosted: Thu Apr 01, 2010 10:10 am 
Newbie

Joined: Thu Apr 01, 2010 9:20 am
Posts: 4
Ok I'll leave that part.

From you images. I have got the first screen.
There I have selected the "Hibernate XML Mapping file(hbm.xml)" and clicked "Next" button.
From there I was not routed to the second screen, where I can select the "parent folder" and
give my "File name".

Instead I got a wizard where I'm asked to add classes or packages.
"Window Title-->New Hibernate XML Mapping files(s)
Create Hibernate XML Mapping file(s)
Add classes and packages or wizard will create an empty mapping file
Buttons-->Add Class
Add Package
Remove
"


Top
 Profile  
 
 Post subject: Re: problem in creating hbm.xml file
PostPosted: Thu Apr 01, 2010 10:23 am 
Regular
Regular

Joined: Wed Mar 10, 2010 4:48 am
Posts: 106
Are you sure you have selected: "Hibernate XML MappingFile (hbm.xml)", before clicking next?
If so I don't know how to help you.


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