Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Hibernate How do you map Java Objects with Database tables?
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Java Coder
How do you map Java Objects with Database tables?
1 Answer(s)      a year and 8 months ago
Posted in : Hibernate


Hi,

How do you map Java Objects with Database tables?

thanks,


Advertisement
View Answers

April 18, 2013 at 6:42 PM


hi friend,

In Hibernate to map the Java objects with database tables you would have to first create a Pojo class containing setter and getter methods of data member. Then create the hibernate mapping xml file i.e. hbm.xml file and then map the Java class to table and database columns to Java class variables.

For reading more detail please visit the following link may, this will be helpful for you.

http://www.roseindia.net/hibernate/hibernate4/firstHibernateApplication.shtml



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com