Creatorip's Blog

July 25, 2009

Understanding Hibernate and LINQ Similar Technologies with different language

Filed under: Programming features — creatorip @ 1:47 pm

hello friends as entitled we are going to understand and compare two new technologies that have been introduced by words most leading platforms making it  easier for the programmers like us to handle database operations on front-end rather than on database back-end

Image:Hibernate.png

Hibernate a java technology  enables us to map object oriented domain model with the relational database  model in a way it enables us to map java  classes types to the database tables (ie java data types to sql datatype if you think in terms of (SQL)). It can generate source code  skeletal for persistent classes.It can manage the schema of a relational database using annotations and xml shema. it supports custom datatypes to be mapped with the database that makes it more flaxible with overriding default data type, replicating same properties to be mapped to morethan one column and also mapping enumaration array to be mapped to columns.

hibernate process and object orgnization

hibernate process stack

The generation of persistent classes and being able to generate the sql calls makes it possible to handle dirty bit set and reset events intelligently and update the relevant data from the dataset that gives  quit a relief from writing quires to updating the database and worrying about the concurrent  data updates in a business environment seeking data integrity.Cascaded objects to record database changes in real-time manner.

queries are to be written in HAQ language and the architecture is as follows

An Entity or Parent :- it is a class object  is independent of others though it is a persistence

a content or child : it is a class object that is dependent or in relation with some entity and persistent updates are applicable to the same.

this were the basics  for Hibernate  now we will go for the Linq basic architecture.

The linq has been incorporated with .net 3.5 version and also with .net 3.0 updates. When it comes to .net it has multilanguage support so CLR enables the language to write a program in multiple language on top of LINQ.A Linq to sql provider works only with the sql but Linq supports linq to DataSet which intern uses the ADO.net to communicate with other datasouces

linq

as the hierarchy displays LINQ architecture  has the following fragments


Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a comment

Blog at WordPress.com.