CSC/ECE 517 Fall 2007/wiki2 2 aa: Difference between revisions
Line 13: | Line 13: | ||
=Comparison= | =Comparison= | ||
In Hibernate, you'd usually begin development by working on your Java objects because Hibernate is a mapping framework. The object model becomes the center of your Hibernate universe. Active Record is a wrapping framework, so you start by creating a database table. The relational schema is the center of your Active Record universe. | In Hibernate, you'd usually begin development by working on your Java objects because Hibernate is a mapping framework. The object model becomes the center of your Hibernate universe. Active Record is a wrapping framework, so you start by creating a database table. The relational schema is the center of your Active Record universe. | ||
Active Record also includes some features that many Java frameworks don't have, such as model-based validation. | |||
=Reference= | =Reference= |
Revision as of 15:12, 21 October 2007
Object-relational mapping. Ruby's ActiveRecord is one attempt to allow an object-oriented program to use a relational database. The Crossing Chasms pattern is another. Look up several approaches to mapping relational databases to o-o programs, include hyperlinks to all of them, and explain how they differ. Report on the strengths of various approaches (making sure to credit the authors for their insights).
Introduction
Object-relational Mapping
Object-relational mapping is a programming technique or process to transform data between relational database and a set of data in object-oriented programming.
Implementations
ActiveRecord in Ruby
Crossing Chasms Pattern
Hibernate
Service Data Object
Comparison
In Hibernate, you'd usually begin development by working on your Java objects because Hibernate is a mapping framework. The object model becomes the center of your Hibernate universe. Active Record is a wrapping framework, so you start by creating a database table. The relational schema is the center of your Active Record universe. Active Record also includes some features that many Java frameworks don't have, such as model-based validation.
Reference
External Links