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
What are the Sub categories of Artificial Intelligence? Briefly explain any two? 1. Expert systems: Expert system is in which system that is in some limited sense, could repl

JavaScript is an extremely powerful object-based (or prototype-based) language. It is not a full-blown OOP (Object-Oriented Programming) language, like Java, however it is an objec

In the previous assignments, we have developed an Asteroids game. In this assignment, we are going to use the same codebase to develop a different gameplay. The inspiration for thi

how to write a program to assign value of variable age and print if person is major.

What are the different messaging paradigms JMS supports? Ans) Publish and Subscribe i.e. pub/suc and Point to Point i.e. p2p.

What is Overriding? When a class explains a method using the similar name, return type, and arguments as a method in its superclass, the method in the class overrides the metho

I want a Script developer who will make script for me and if you can show good works there are bonuses too. Skills required are Facebook Marketing, Java, Javascript, PHP, and Sc

Develop Billing Software Project Description: Need software to print bills on A4 paper in the format provided. The details are shown below - 1. Serially generated Invoice

Project Description: I want to build a camera application for android. By default android will add metadata for the image, for e.g.  Date, time, resolution, gps tag etc..In this

What is constructor chaining and how is it achieved in Java? A child object constructor always first requires to construct its parent (which in turn calls its parent constructo