How do you map Java Objects with Database tables?

Ads
 

How do you map Java Objects with Database tables?

Hi,

How do you map Java Objects with Database tables?

thanks,

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









Related Tutorials/Questions & Answers:
How do you map Java Objects with Database tables?
Map Java Objects with Database tables
Advertisements
Map java Object to database.
how do you parse by reference in java(with JGrasp)
java code to compare two hash map objects
how to do map in iphone?-RV
How do you define a constant?
How do you call a constructor for a parent class?
How do you pass a variable by value?
How do you add a numerical value to a regex
What do you understand by Hibernate in Java?
How to convert map to json in Java
how to do two database tables in one page?
how do you change the message box to a specific color
How do I decompile Java class files?
How do I initialize a byte array in Java?
How do I compare strings in Java?
How do I do this program? I'm new to Java programming...
How do i do the coding for 'leaving a comment' in java
How do beginners learn about Java?
How to use Map in velocity
how to do combinations in java - Java Beginners
how do i write a java program for this??
do-while Loop in Java
how to refresh google map using ajax by fetching lat long from database
JDO - Java Data Objects Tutorials
HOW TO DO WEBSITE INTERFACE FOR JAVA MODULE
How do i validate form using javascript and send data to database?
Do-while loop in Java
Objects in Java
in an application one task has to done for every 15 minutes ? How con you do it?

Ads