Your SlideShare is downloading. ×
Introduction To NHibernate
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Introduction To NHibernate

3,859
views

Published on

Introduction to NHibernate O/R mapper technology

Introduction to NHibernate O/R mapper technology

Published in: Technology

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
3,859
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
172
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1.
    • Emad Alashi
    • Technical Team Leader in eSense software
    • http:// eashi.wordpress.com
    • emad.ashi@ gmail.com
  • 2.  
  • 3.
    • Most of the applications in the business world are data-centralized (yes…database!):
      • 1- Retrieve data from DB
      • 2- Process data
      • 3- Save data to DB
    DB
  • 4. Connections, Transactions,… Insert Commands Update Commands Delete Commands Retrieve Commands Convert to BO Domain Objects DB
  • 5.  
  • 6.
    • Code writing:
      • SQL queries and SP
      • DB connectivity objects (connections, commands…etc)
      • CRUD Operations (Create, Read, Update, Delete)
      • Integrity (scalar to OO, object identity…etc)
    • Code maintenance:
      • Look above!
  • 7. Domain Objects Configuration DB Connections, Transactions,… Insert Commands Update Commands Delete Commands Retrieve Commands Convert to BO
  • 8.
    • Programming technique for converting data types between relational databases and object-oriented programming languages (Wikipedia)
    • OOP vs. Relational
    • Examples:
      • Hibernate
      • ORM.net
      • ObjectMapper
      • Genome
      • NPersist…etc
  • 9. Database XML mapping file Domain Object
  • 10.  
  • 11.
    • O/R mappers benefits:
      • Productivity: less code to write/maintain
      • Abstraction: transient to different DB technologies
      • Consistency
      • Quality: depending on the product
    • Challenges:
      • Learning curve
  • 12.
    • Session and SessionFactory
    • Objects Identity
    • Collections (one-to-many, many-to-one, many-to-many)
    • <Union>
    • Inheritance
    • ICriteria
    • HQL
    • Caching
    • Interceptors
    • Performance Tuning
  • 13.
    • http://en.wikipedia.org/wiki/Object-relational_mapping
    • http://davidhayden.com/blog/dave/archive/2005/03/19/876.aspx
    • www.hibernate.org
    • http://forum.hibernate.org/viewtopic.php?t=952439
    • http://www.theserverside.net/tt/articles/showarticle.tss?id=NHibernate
    • http://www.codeproject.com/KB/database/Nhibernate_Made_Simple.aspx
    • http://groups.google.com/group/nhusers
  • 14. Thanks for attending http://eashi.wordpress.com [email_address]
  • 15.