Object Role Modeling Prepared by   Ahmed Magdy Ezzeldin
Outline <ul><li>What & Why ORM? </li></ul><ul><li>ORM Building Blocks </li></ul><ul><li>Example </li></ul><ul><li>ORM Proc...
What & Why ORM? <ul><li>Object Role Modeling (ORM) is a powerful method for  designing  and  querying  database models at ...
ORM Building Blocks <ul><li>Object Types - Entity Types (map directly to an  ER Entity ) - Value Types (map directly to  E...
Example <ul><li>The  Student  named   Ahmed  is enrolled in  the  Course  named  Math </li></ul><ul><li>Entity Types:  Stu...
ORM Process To model any application using ORM we need to follow these steps starting from the requirements provided by th...
ORM Symbol Glossary Value Entity Description Symbol Example Entity Type Student, course, song, band Value Type Student nam...
Summary <ul><li>ORM can be changed to  ER . </li></ul><ul><li>ORM can easily be changed to  UML . </li></ul><ul><li>ORM is...
Questions Thank you Questions ???
Upcoming SlideShare
Loading in...5
×

Object Role Modeling

1,553
-1

Published on

Object Role Modeling (ORM) is a powerful method for designing and querying database models at the conceptual level, where the application is described in non-technical terms.

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,553
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
33
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Object Role Modeling

  1. 1. Object Role Modeling Prepared by Ahmed Magdy Ezzeldin
  2. 2. Outline <ul><li>What & Why ORM? </li></ul><ul><li>ORM Building Blocks </li></ul><ul><li>Example </li></ul><ul><li>ORM Process </li></ul><ul><li>ORM Symbol Glossary </li></ul><ul><li>Summary </li></ul>
  3. 3. What & Why ORM? <ul><li>Object Role Modeling (ORM) is a powerful method for designing and querying database models at the conceptual level, where the application is described in non-technical terms. </li></ul><ul><li>1. Communicating models with your team </li></ul><ul><li>2. Communicating and validating models with your client </li></ul><ul><li>3. Great brainstorming tool </li></ul><ul><li>In practice, ORM data models often capture more business rules , and are easier to validate and evolve than data models in other approaches. </li></ul>
  4. 4. ORM Building Blocks <ul><li>Object Types - Entity Types (map directly to an ER Entity ) - Value Types (map directly to ER attributes ) </li></ul><ul><li>Facts - Predicates: {0} is enrolled in {1} - Roles: {0} and {1} </li></ul><ul><li>Constraints - Like uniqueness constraint </li></ul>
  5. 5. Example <ul><li>The Student named Ahmed is enrolled in the Course named Math </li></ul><ul><li>Entity Types: Student, Course </li></ul><ul><li>Value Types: Ahmed, Math </li></ul><ul><li>We have 3 Facts (predicates) with 2 roles each: - Student is named Ahmed - Course is named Math - Student is enrolled in Course </li></ul>
  6. 6. ORM Process To model any application using ORM we need to follow these steps starting from the requirements provided by the domain expert: 1. Transform information examples into facts 2. Draw the Entity & value types 3. Add Fact types and assign roles 4. Add constraints
  7. 7. ORM Symbol Glossary Value Entity Description Symbol Example Entity Type Student, course, song, band Value Type Student name, course name, song title, band name Fact with 2 roles (Predicate with 2 arities) Student is enrolled in course Uniqueness Constraint (has one) the first role is unique ti the second role. Each student has at most 1 name but there may be 2 students who have the same name 1:1 both roles are unique to each other Every student has at most one name and there are no 2 students with the same name. m:n Many to many Every student may be enrolled in many courses and each course may have many students.
  8. 8. Summary <ul><li>ORM can be changed to ER . </li></ul><ul><li>ORM can easily be changed to UML . </li></ul><ul><li>ORM is rich as it captures more business details by capturing facts and constraints . </li></ul>
  9. 9. Questions Thank you Questions ???
  1. Gostou de algum slide específico?

    Recortar slides é uma maneira fácil de colecionar informações para acessar mais tarde.

×