-->
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.  [ 2 posts ] 
Author Message
 Post subject: is it hbm.xml must to retrive data from database
PostPosted: Sun Nov 05, 2006 7:07 am 
Newbie

Joined: Sun Nov 05, 2006 6:54 am
Posts: 1
Hi

I have to retrive only student joindate from student table.
Is it must to write .hbm.xml file?.
Without .hbm.xml file, how to retrive data from student table.

Iam new to hibernate.

Thanks in advance.


Top
 Profile  
 
 Post subject: You need a mapping between the java object and the data base
PostPosted: Mon Nov 06, 2006 4:18 am 
Beginner
Beginner

Joined: Thu Nov 02, 2006 2:23 pm
Posts: 33
The hbm file is a mapping between the java object and the data base.

So, for example if you have Class Student the hbm map this class to a table in the data base and map the class properties to the table columns.

You can do this mapping with doclet (if you are using doclet you dont need hbm).

Go to the first chapter in the Hibernate tutorial and you will see how to create a hibernate application


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