How do you map Java Objects with Database tables?

Ads

 
 

Share on Google+Share on Google+

Java Coder
How do you map Java Objects with Database tables?
1 Answer(s)      4 years and a month ago
Posted in : Hibernate

Hi,

How do you map Java Objects with Database tables?

thanks,

Ads
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


Ads