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
Give an Examples of java.lang.Math Methods Here is an instance program in which exercises most of the routines in java.lang.Math. If your high school math is a little rusty, do

how to imlement thomas'' write rule?

THE FOLLOWING PROGRAM SHOULD BE JAVA IN ECLIPSE Minimal Spanning Tree Decreasing Edge Dismissal Reverse-delete algorithm. Develop an implementation that computes the MST as fol

Question: (a) Draw out a UML class diagram that captures the following information: An Employee is a kind of Person. An ATM is a kind of Machine. Both an Employee and an ATM

Java has some bugs in its applets. Java team stated that they have zero tolerance over security features and subsequent editions of Java are managing Bug free environment. Some of

Project Description: I need a new payment gateway of my own. I mean new payment gateway not any integration. So please bid only if you had made a payment gateway former like

List the unexpected quotients in java? 2/3 = 0 3/2 = 1 1/0 = ArithmeticException 0/0 = ArithmeticException 1.0/0.0 = Inf 1.0/0 = Inf 0.0/0.0 = NaN -1.0/0.0

Explain The Applet in java? The reason people are excited about Java as more than just another OOP language is because it allows them to write interactive applets on the web.


Explain the for loop in java? // This is the Hello program in Java class Hello { public static void main (String args[]) { System.out.print("Hello "); // Say Hello