Map objects to a relational database? , JAVA Programming

Due to impedance mismatch between relational technology and object you need to understand the progress of mapping classes (objects) and their relationships to tables and relationships between them in a database. Classes show both behavior and data whereas relational database tables just insert data. Database schemas have keys whereas object schema does not have keys and instead use instance references to implement relationships to other objects.

 

858_Relational Database.png

 

1. Classes map to tables in a way but not directly.

2. An attribute of a class may be mapped to zero or more columns in a database. Not all attributes are consistent.

3. Some attributes of an object are objects itself. This is a recursive relationship where at some point the attribute will be mapped to more columns or zero.

4. In its simple form an attribute maps to a single column whereas each has similar type. When you prepare mapping with different kinds then you will use to be able to convert them back and forth.

 

Posted Date: 7/27/2012 4:51:20 AM | Location : United States







Related Discussions:- Map objects to a relational database? , Assignment Help, Ask Question on Map objects to a relational database? , Get Answer, Expert's Help, Map objects to a relational database? Discussions

Write discussion on Map objects to a relational database?
Your posts are moderated
Related Questions
Java says write once, run anywhere . In which ways this isn't quite applicable ?

I want someone to help me prepare a simple inventory system. I am not a programmer trying to learn as i go. Skills required: Android, Java, iPhone, Mobile Phone, Objective

What is the use of UnicastRemoteObject in RMI? Ans) The UnicastRemoteObject class gives support for point-to-point active object references using TCP streams. Objects that need

There are two different types of data in a JSP page. 1. Static part which occurs copied directly to the response by the JSP Engine. 2. Dynamic part, which have anything that

Required: Inventory Selection Function in Opentaps ERP We work on Opentaps ERP and Application development framework. Our requirement is to modify the Inventory selection functi

You are required to write a program that is going to be used to store the student details of a particular school.  This school caters for students aged between 5 years to 15 years.

Question 1 Explain the data types in Java Question 2 Write a note on StringBuffer Question 3 What is Exception? Question 4 Write a note on stream classes Questi

how much it will cost me

Using the above thread program, now create 20 threads in your program and run them. No need to wait for the keyboard in each thread, just print "Hello" and its thread id in each t

list The Java Class Library? Java holds an extensive library of pre-written classes you can use in your programs. These classes are separated into groups known as packages. Th