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
Consider the following C++ template class. #include using namespace std; template class SortedList { public: SortedList() {size = 0;} void insert(T item); friend ostrea

The different types of actions in Struts are: ? DispatchAction ? LookupDispatchAction ? ForwardAction ? SwitchAction ? IncludeAction

short Java application that stores words in an Array or ArrayList.

Write a Java program in a NetBeans project that reads a text file containing the names and addresses of several people and displays them all at once or one at a time upon selecting

How DoS attack is a cyber crime? For what cyber crime can be used? DoS stands for Decline of Service and it is a cyber crime as it jams and within a few cases shut down the goa

Java Programming 1. What do you understand by Java Virtual Machine? 2. Write a simple Java program to display a string message and explain the steps of compilation and execu

Question 1 Write a program in Java to find the highest of any five numbers. How do you compile and execute this Java program? Question 2 Write a program to explain the Except

Develop a simple polling (voting) web application according to the following specifications: 1. Initially a page should be presented to the user where he can enter his/her

1. Which of the following are not valid Java identifiers, and why? (a) wolVes (b) United(there is only one) (c) 87 (d) 5 3 (e) Real ale (f) isFound?by 2. A cla

I send you these files in order to make clear image about my task that I want you to design for me an application for PC that used to control robot arm via micro controller PIC18.