New Technology: Why, What ,How

Slides:



Advertisements
Similar presentations
V 6, Mats Strandberg ORM With Hibernate.
Advertisements

Introduction to the Spring Framework
January 30, 2014 Copyright Jim Farley Beyond JDBC: Java Object- Relational Mappings Jim Farley e-Commerce Program Manager GE Research and Development
An Object/Relational Mapping tool Free and open source Simplifies storage of object data in a relational database Removes the need to write and maintain.
NHibernate Object/Relational Persistence for.NET.
Object Relational Mapping – ORM Entity Framework
Spring, Hibernate and Web Services 13 th September 2014.
.NET Database Technologies: Open-Source Frameworks.
Hibernate 1. Introduction ORM goal: Take advantage of the things SQL databases do well, without leaving the Java language of objects and classes. ORM.
Object Relational Mapping. What does ORM do? Maps Object Model to Relational Model. Resolve impedance mismatch. Resolve mapping of scalar and non-scalar.
Object-Oriented Databases
ORM Object-Relational Mapping 1. Object Persistence Persistence is the ability of an object to survive the lifecycle of the process, in which it resides.
Object-Oriented Methods: Database Technology An introduction.
Session-01. Hibernate Framework ? Why we use Hibernate ?
Data Persistence and Object-Relational Mapping Slides by James Brucker, used with his permission 1.
Introduction to JPA Java Persistence API Introduction to JPA.
Hibernatification! Roadmap for Migrating from Plain Old SQL on JDBC to JPA on Hibernate Duke Banerjee Senior Developer, DrillingInfo.com.
Object and object-relational databases 1. Object databases vs. Object-relational databases Object databases Stores complex objects – Data + functions.
UPortal Developers MIT August 2004 Persistence Strategy for uPortal 3 Mike DeSimone the r-smart group
Data Access Patterns Some of the problems with data access from OO programs: 1.Data source and OO program use different data modelling concepts 2.Decoupling.
1 Overview of Databases. 2 Content Databases Example: Access Structure Query language (SQL)
NHibernate in Action Web Seminar at UMLChina By Pierre Henri Kuaté 2008/08/27
Shaowen Wang CyberInfrastructure and Geospatial Information Laboratory (CIGI) Department of Geography and National Center for Supercomputing Applications.
CHAPTER 14 USING RELATIONAL DATABASES TO PROVIDE OBJECT PERSISTENCE (ONLINE) © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database.
.NET Database Technologies: Data Models and Patterns.
1 Another group of Patterns Architectural Patterns.
Opus College - overview. OpusCollege - background First project: ICT Capacity Building Mozambican Higher Education Institutions Partners: RUG Groningen,
Modern Database Techniques Part 1: Object Oriented Databases 3. Different Kinds of OODB.
Object-relational mapping Author: Jaroslav Orság Diploma thesis supervisor: Ing. Augustín Mrázik.
Object Oriented Analysis and Design 1 Chapter 7 Database Design  UML Specification for Data Modeling  The Relational Data Model and Object Model  Persistence.
Introduction to Web Dimitar Nenchev Ivan Nakov
© 2011 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 14 Using Relational Databases to Provide Object Persistence (Overview) Modern Database.
Architectural Patterns Support Lecture. Software Architecture l Architecture is OVERLOADED System architecture Application architecture l Architecture.
1 Mapping to Relational Databases Presented by Ramona Su.
Domain and Persistence Patterns. Fundamental Pattern Types Design Patterns Business Logic Patterns.
(1) Introduction to Models using the Play Framework Philip Johnson Collaborative Software Development Laboratory Information and Computer Sciences University.
An Introduction to Object/Relational Persistence and Hibernate Yi Li
Oct * Brad Tutterow. VS 2008.NET 3.5LINQ Entity Framework  The ADO.NET Entity Framework is part of Microsoft’s next generation of.NET technologies.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
JPA / HIBERNATE CSCI 6370 Nilayan Bhattacharya Sanket Sable.
Fall CIS 764 Database Systems Engineering L18.2 : Object Relational Mapping … ….Object persistence.
Topic : Hibernate 1 Kaster Nurmukan. An ORM tool The problem fixed by ORM Advantage Hibernate Hibernate Basic –Hibernate sessionFactory –Hibernate Session.
ThinStructure: An Overview Support for ThinStructure demonstration. Jean Georges Perrin – Annandale, 21 st April 2004.
Topic : Hibernate 1 Kaster Nurmukan. An ORM tool Used in data layer of applications Implements JPA.
Fundamentals of MyBATIS
Introduction to ORM Hibernate Hibernate vs JDBC. May 12, 2011 INTRODUCTION TO ORM ORM is a programming technique for converting data between relational.
ORM Basics Repository Pattern, Models, Entity Manager Ivan Yonkov Technical Trainer Software University
Faeez, Franz & Syamim.   Database – collection of persistent data  Database Management System (DBMS) – software system that supports creation, population,
Hibernate Java Persistence API. What is Persistence Persistence: The continued or prolonged existence of something. Most Applications Achieve Persistence.
Relational vs. Object Oriented Database Management System Syazwani Nur Dayana Nur Fatin Syafiqa M3cs2305B.
Fall CIS 764 Database Systems Engineering L11: Object Relational Mapping … (a) ORM, Object persistence (b) Pets sequence.
HIBERNATE/Java Overview of technology for Hibernate by محمد حسن کاظمی پوران Master : M.M.Nematollahi.
Best 3 Software Development Languages. Hibernate Training Hibernate is a high-performance object-relational mapping tool and query service. Hibernate.
Databases and DBMSs Todd S. Bacastow January
Introduction to Entity framework
Don't Know Jack About Object-Relational Mapping?
Robert Worden Open Mapping Software Ltd
Top 8 Best Programming Languages To Learn
Principles of GIS Fundamental database concepts – II Shaowen Wang
Object-Oriented Database Management System (ODBMS)
POOL persistency framework for LHC
ADO.NET Entity Framework Marcus Tillett
ADO.NET Entity Framework
.NET Database Technologies:
Hibernate Bayu Priyambadha, S.Kom.
Testing a persistence layer
PHÂN TÍCH THIẾT KẾ HƯỚNG ĐỐI TƯỢNG
Developing and testing enterprise Java applications
Teneo Ganymede Mini Deck
Object Relational Mapping Tools
Presentation transcript:

New Technology: Why, What ,How Requirement . Current way of doing things. Problem . Generic Solution or Design Pattern. Available solutions in market. Hibernate . Where to read from ?

Typical Requirement App Data Needs to be persisted. Data generally Outlives Applications. Application : Object Oriented Language -> Java , C# Databases : Relational Databases. Mid-Size App : Around 35% code involves Persistence Layer

Current way Domain Model and Schema are Designed Separately. Tables  Classes Tables. Transformation: Manual SQL and results are mapped to Objects. Lots of SQL  Row becomes an Object Instance. Developers responsibility of mapping OO Instances to Tables row and Column.

Problem Object Relational Impedance: Resistance or Obstruction. 1. Structural Problems: a) Java Types vs. SQL Types. b) User Defined Types. c) Inheritance. 2.Behavioral Mismatch : a) Tables :data ,Objects :data and Behavior . b) Polymorphism. c) Equality. d) Associations. 3. Granularity. 4. Data Navigation.

Problem Large Systems : a) Cache Management b) Transaction Handling. SQL dependent on Underlying DB : Portability ??

Constraints :Fundamental Shift Reason’s why we cant change the way we work. Move to OO Databases : Gemstone,Db4O a) RDBMS  backed by Mathematics. b) Performance in Data Management. c) Already Huge Investment In RDBMS. Move away From OO Concepts: a) We All know benefits of OO principles . b) Shines in Complex Domain Structure. So We have to live with Previous Problems.

General Solution SOLUTION: Use a mapping layer to map between Goal : We want to directly manipulate data contained in a relational database using an object programming language (Java). SOLUTION: Use a mapping layer to map between the object world and the relational world. Automate task of converting Tables  Classes Tables. Framework to optimize I/O transaction's b/w App layer and DB. Framework having a Cache Management. Runtime SQL generation :portability across different Db Vendors. This resulted in number of Home-grown ORM frameworks.

Available solutions Language Name Type Lots of ORM frameworks now available in market. Language Name Type Java Hibernate Open-Source IBATIS ASF Top-Link Oracle .NET NHibernate Open-source Genome commercial

Why Hibernate Quite Mature and vast functionality. Open-Source . Substantial User base. Heavily influenced JPA specification, Industry approved. Close to EJB 3 Specification. Good Caching and Transaction management functionality available. Support for almost all available Databases. Learning Curve is Easy: a) Lots of material on Net. b) Many Books now available.

Resources http://www.hibernate.org/hib_docs/reference/en/html_single/ http://www.hibernate.org/78.html http://www.java201.com/resources/browse/2003/hibernate.html