Showing posts with label NHibernate. Show all posts
Showing posts with label NHibernate. Show all posts

Wednesday, September 03, 2008

New home for NHibernate – NH Forge

NH Forge - The NHibernate community site.

 image

“Welcome to the NHibernate community site!!

Since the end of 2007 NHibernate has enjoyed increasing popularity as an object-relational mapping framework for .NET software projects.  Along with that came a steady increase in the community of NHibernate users, contributors, and related projects.  As this community grew and matured, we have seen an explosion in the number of blogs, FAQs, training materials, discussion groups, and other NHibernate-related resources on the Internet.

Even the 'formal' official resources for NHibernate have proven insufficient to the growing task of supporting this community.  The documentation in its static HTML form is difficult to search, index, and use as a live reference.  The discussion forum has limited interactivity and flexibility, and there isn't a structured way, for other community members, to contribute to the centralized content.

As related contributing projects have grown up to offer additional services to extend NH, the resources for these projects have been similarly scattered across the Internet and its difficult to get a complete picture of the entire universe of NH tools and capabilities for anyone considering using these technologies.  This in turn hinders the adoption of this wider collection of tools as many NH users are simply unaware of their existence.

The challenge of NH Forge is provide a single centralized resource for all things related to NH offering a community blog, an easy to use WIKI, other related community-oriented tools.

…”

This looks like a great new resource for NHibernate…

(via SourceForge NHibernate - New NHibernate Community site)

 

Related Past Post XRef:
NHibernate v2.0 Released (i.e. 2.0 GA)
How to gain ORM and influence databases – NHibernate, The Summer Screencast Series

Sunday, August 24, 2008

NHibernate v2.0 Released (i.e. 2.0 GA)

Ayende @ Rahien - NHibernate 2.0 Final is out!

“Guys, gals and its. I am overjoyed to tell you that NHibernate 2.0 has been released.

You can get it directly from the download page.

…”

NHibernate SourceFouge - NHibernate: 2.0.0.GA is released

“A .NET port of the excellent Java Hibernate (http://www.hibernate.org) relational persistence tool.

NHibernate 2.0.0.GA is released today. It is comparable to Hibernate 3.2 in terms of features. 

More information about NHibernate:  
http://www.nhibernate.org/

Download NHibernate 2.0.0.GA:  
https://sourceforge.net/project/showfiles.php?group_id=73818[Post leached in full]

Hibernate - NHibernate for .NET

“NHibernate is a port of Hibernate Core for Java to the .NET Framework. It handles persisting plain .NET objects to and from an underlying relational database. Given an XML description of your entities and relationships, NHibernate automatically generates SQL for loading and storing the objects. Optionally, you can describe your mapping metadata with attributes in your source code.

NHibernate supports transparent persistence, your object classes don't have to follow a restrictive programming model. Persistent classes do not need to implement any interface or inherit from a special base class. This makes it possible to design the business logic using plain .NET (CLR) objects and object-oriented idiom.

Originally being a port of Hibernate 2.1, the NHibernate API is very similar to that of Hibernate. All Hibernate knowledge and existing Hibernate documentation is therefore directly applicable to NHibernate. Take a look at the available NHibernate Documentation.

…”

I’ve not used an ORM (yeah, yeah, I know…), but NHibernate is mentioned so often in the same sentence as “ORM” that I think it’s only a matter of time before I do.

(via The Code Bucket - NHibernate 2.0 Release!!)

 

Related Past Post XRef:
How to gain ORM and influence databases – NHibernate, The Summer Screencast Series

Thursday, July 24, 2008

How to gain ORM and influence databases – NHibernate, The Summer Screencast Series

Summer of NHibernate Screencast Series

“The purpose of this site is to provide one-stop easy access to direct downloads of the screencasts. If you have feedback, comments, questions, etc. please visit my blog and post them there.

…”

Unhandled Exceptions - Summer of NHibernate Session 01: Setup and Basic Usage Pattern Screencast is Available

“I am pleased to announce that the first installment of the Summer NHibernate screencast series is finally available for download!

This first session covers the basic setup and usage patterns of the NHibernate object relational mapping technology and starts with the basics assuming no familiarity on the part of the user with NHibernate at all.  For background on the reasoning behind this video series refer to this previous post.

Screencast Session Outline

Session 1 (6/13): SETUP AND BASIC USAGE PATTERN

  • Get the NHibernate dlls and .xsd files
  • Demonstrate how to add the xsd files to VS XML intellisense capabilities to get syntax support in the XML files
  • Use a simple Customer — Orders — OrderItems style database
  • Hand-code DTO class for the ‘Customer’ table
    • Introduce the concepts of 1:1 relation between table and class
    • (the dumb-DTO pattern; start here since it’s by far the simplest way to work)
  • Hand-code the Customer.hbm.xml mapping file to expose people to this syntax
  • Hand-code the hibernate.cfg.xml file to expose people to this syntax
  • Setup the project in VS (data access class lib)
  • Setup a corresponding test class to go along with it (to be used to exercise the data access class lib)
    • Further demonstrates the value of unit tests as a ‘harness’ for exercising concepts in a safe vacuum
  • Code a simple method that demonstrates the basic mechanics of interacting with NHibernate to retrieve all Customers from the database
    • ISessionFactory, ISession, reading configuration(s)
    • Leveraging the using ( ) {…} block to ensure session is properly closes/disposed of when done

…”

ORM’s is another area where I feel I’m way behind the times in. I’ve been watching them for a while, but have stuck with my tried and true ADO.Net fugly coding pattern (code it once, cut-n-paste-n-tweak).

It’s getting to be that time were I start taking a serious look at this space. Either via a light weight ORM like Linq to SQL, or one of the heavier ones like NHibernate, Entity Framework, etc. First I need to get the Zen of it and I’m hoping these casts will help with that. I need to stop reading and start seeing (and then start doing  ;)

For more NHibernate resources make sure you click through to Scott’s post (below) as he included a short list of related links.

(via Scott Hanselman's ComputerZen.com - Learn How to use NHibernate with the Summer of NHibernate Screencast Series