 Who I am  What is NHibernate? ◦ Object Relational Mapper ◦ A framework for building advanced frameworks ◦ Ported from Java ◦ A wide NHibernate ecosystem.

Slides:



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

Introduction to NHibernate By Andrew Smith. The Basics Object Relation Mapper Maps POCOs to database tables Based on Java Hibernate. V stable Generates.
NHibernate Object/Relational Persistence for.NET.
LACP Project Proposal.
Persistence and Datastore
.NET Database Technologies: Open-Source Frameworks.
Ross Beehler Lead Software Developer Press Ganey Associates, Inc.
Hibernate 1. Introduction ORM goal: Take advantage of the things SQL databases do well, without leaving the Java language of objects and classes. ORM.
Data Management Design
Basic features ● Document database ● Paid deployment ● JSON ● C#, HTTP REST, Java ● version 3.0.
Session-02.
Session-01. Hibernate Framework ? Why we use Hibernate ?
Creative Commons Attribution- NonCommercial-ShareAlike 2.5 License Sakai Programmer's Café Sakai Montreal CRIM Workshop Data Persistence and Intro to Hibernate.
Data Persistence and Object-Relational Mapping Slides by James Brucker, used with his permission 1.
Hibernatification! Roadmap for Migrating from Plain Old SQL on JDBC to JPA on Hibernate Duke Banerjee Senior Developer, DrillingInfo.com.
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.
NHibernate in Action Web Seminar at UMLChina By Pierre Henri Kuaté 2008/08/27
Introduction to Accounting Information Systems
Object persistence with Hibernate in Decision Deck 1.1 Gilles Dodinet 2 nd Decision Deck Workshop 2008, February.
Extending ArcGIS for Server
CS 157B: Database Management Systems II February 6 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron Mak.
Object Oriented Analysis and Design 1 Chapter 7 Database Design  UML Specification for Data Modeling  The Relational Data Model and Object Model  Persistence.
Intoduction to NHibernate. Agenda Overview of NHibernate Models and Mappings Configuration Sessions and Transactions Queries.
Applying Domain-Driven Design Jimmy Nilsson Webcast with UML China
Hibernate Introduction - 1 Present by Eric Yu. BeanSoft | 2 Content Understanding object/relational persistence Introduction Architecture The core interfaces.
Java Data Persistence Using Hibernate Jack Gardner October 2004.
Object-Relational Mapping with Hibernate Brian Sam-Bodden Principal Partner Integrallis Software, LLC. August 1 - 5, 2005.
Entity Framework Code First – Beyond the Basics Sergey Barskiy, Magenic Microsoft MVP – Data Platform Principal Consultant.
Intoduction to NHibernate. Agenda Overview of NHibernate Models and Mappings Configuration Sessions and Transactions Queries.
JPA / HIBERNATE CSCI 6370 Nilayan Bhattacharya Sanket Sable.
Intoduction to NHibernate. Agenda Overview of NHibernate Models and Mappings Configuration Sessions and Transactions Queries.
Persistence – Iteration 4 Vancouver Bootcamp Aaron Zeckoski
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.
Hibernate Basics. Basics What is persistence? Persistence in Object Oriented Applications? Paradigm Mismatch.  The Problem of Granularity.  The Problem.
Persistence – Iteration 4 Vancouver Bootcamp Aaron Zeckoski
Entity Framework Code First – Beyond the Basics Sergey Barskiy, Magenic Microsoft MVP – Data Platform Magenic, Principal Consultant Level: Introductory.
By Srinivas Mahakud Java Persistence API JPA. Review Topics: Introduction what is the JPA? What is the JPA contains of? Why developers should Create the.
Programmation des Applications Internet Internet Application Programming © - Last update: Friday, 05 February
Topic : Hibernate 1 Kaster Nurmukan. An ORM tool Used in data layer of applications Implements JPA.
JPA in Vaadin CSCI 3130 Winter What is JPA?  Java Persistence API  Allows for “easy” storage of Java Objects  Is a type of Object Relational.
Sean Chambers.  ORM stands for Object Relational Mapper  Maps your POCO (plain old clr objects) to your relational model using XML config  Relieves.
Singleton Academy, Pune. Course syllabus Singleton Academy Pune – Course Syllabus1.
1 Entity Callbacks and Listeners When you execute EntityManager methods like persist( ), merge( ), remove( ), and find( ), or when you execute EJB QL queries,
Hibernate Basics 廖峻鋒 Sep 14,2004 NTU Dept. of CSIE.
CS422 Principles of Database Systems Object-Relational Mapping (ORM) Chengyu Sun California State University, Los Angeles.
CS520 Web Programming Object-Relational Mapping with Hibernate and JPA (I) Chengyu Sun California State University, Los Angeles.
CS 440 Database Management Systems Stored procedures & OR mapping 1.
Hibernate Java Persistence API. What is Persistence Persistence: The continued or prolonged existence of something. Most Applications Achieve Persistence.
1 © 2005 Cisco Systems, Inc. All rights reserved. Cisco Confidential Session Number Presentation_ID Unity Connection Provisioning API Matt Penning Unity.
1 Copyright © 2008, Oracle. All rights reserved. Repository Basics.
Enterprise Library 3.0 Memi Lavi Solution Architect Microsoft Consulting Services Guy Burstein Senior Consultant Advantech – Microsoft Division.
Fall CIS 764 Database Systems Engineering L11: Object Relational Mapping … (a) ORM, Object persistence (b) Pets sequence.
© 2016, Mike Murach & Associates, Inc.
Chengyu Sun California State University, Los Angeles
Entity Framework: Relations
A very brief introduction
Persistence – Iteration 4 Vancouver Bootcamp
Advanced Java Programming
Relational Database Collaboration
 .NET CORE
Database Applications (15-415) ORM - Part I Lecture 11, February 11, 2018 Mohammad Hammoud.
.NET Database Technologies:
Entity Framework Core.
CS4961 Software Design Laboratory Understand Aquila Backend
Chengyu Sun California State University, Los Angeles
ADO.NET Entity Framework
Entity Framework & LINQ (Language Integrated Query)
Copyright © JanBask Training. All rights reserved Get Started with Hadoop Hive HiveQL Languages.
Presentation transcript:

 Who I am  What is NHibernate? ◦ Object Relational Mapper ◦ A framework for building advanced frameworks ◦ Ported from Java ◦ A wide NHibernate ecosystem now exists ◦ Why ORMs?

 Download and add necessaryreferences  Intellisense  Show common exceptions  Configure mapping files  Configure configuration files  Create repository

ITransaction ISession ISessionFactory Configuration IUserType ICompositeUserType Statistics IInterceptor IEventListener Custom defined mappings Interception Instrumentation Core API IQuery ICriteria Querying

 Many-to-one  Cascading  One-to-many  Components  Assigned keys

 Table per class hierarchy ◦ One table represents an aggregate ◦ Simple and good performance wise ◦ Loss of not-null constraints  Table per concrete class ◦ One table for each non-abstract class ◦ Can be problematic for polymorphic queries  Table per subclass ◦ Completely normalised ◦ Polymorphic queries possible

 NamingStrategy  IUserType  ICompositeUserType  Should be an exception more that the rule

 Event listeners  Interceptors ◦ Refer to empty interceptor implementation ◦ Refer to profiler interceptor setting

 HQL  ICriteria API  Query By Example (QBE)  Linq to NHibernate  Straight SQL

 New feature added at NHibernate 2.0  Exists at both SessionFactory and Session  Must turn statistics on, off by default  Refer to SessionFactoryStatisticsBuilder

 First level Caching ◦ Default caching level ◦ Caching at the session level  Second level Caching ◦ Must be configured at Configuration and entity itself ◦ Caching at the session factory level ◦ Providers such as memcached, nvelocity supported