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 Object to database.
Advertisements
java code to compare two hash map objects
how to do map in iphone?-RV
What do you understand by Hibernate in Java?
How do you add a numerical value to a regex
How to convert map to json in Java
How to convert map to json in Java
how to do two database tables in one page?
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 beginners learn about Java?
Do-while loop in Java
JDO - Java Data Objects Tutorials
How do i do the coding for 'leaving a comment' in java
how to iterate a map in java using for each
how to iterate a map in java using for each
how to iterate a map in java using for each
HOW TO DO WEBSITE INTERFACE FOR JAVA MODULE
how do i write a java program for this??
How do i validate form using javascript and send data to database?
how to add database in Java Applet
How do I set environment variables from Java?
How do I write a correct micro-benchmark in Java?
ModuleNotFoundError: No module named 'Python-Database-Objects-PDO'
ModuleNotFoundError: No module named 'Python-Database-Objects-PDO'
ModuleNotFoundError: No module named 'Python-Database-Objects-PDO'
how to refresh google map using ajax by fetching lat long from database
How to print different Messge for the same NumberFormatException on different cause objects in JAVA?

Ads