NHibernateEg

Pierre Henri Kuaté

This work is in progress and will heavily evolve in the next weeks.

This product is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.

This product is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public License along with this product; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled "GNU Free Documentation License".

For more information, go to this website.

Revision History
14 Nov 2005
First release with Tutorial1A only.

Table of Contents

Preface
Where you can get these tutorials and its code
Requirements
Object / Relational Mapping
1. NHibernateEg.Tutorial1A
Presentation of Order and Shop
Quick review of ADO.NET methods
Using Object / Relational Mapping and NHibernate
Implementation of Order and introduction to NHibernate.Mapping.Attributes
The class header
The identifier and its generator
The properties
The methods
Few remarks
Configuration of NHibernate (database and mapping)
Persistence API
CRUD operations
CREATE: Save
RETRIEVE: Query and Load/Get
UPDATE: SaveOrUpdate / Save / Update
DELETE: Delete(HQL) and Delete(Entity)
Conclusion
2. NHibernateEg.Tutorial1B
3. NHibernateEg.Tutorial1C
4. More information and support
A. GNU Lesser General Public License
Preamble
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
Section 0
Section 1
Section 2
Section 3
Section 4
Section 5
Section 6
Section 7
Section 8
Section 9
Section 10
Section 11
Section 12
Section 13
Section 14
NO WARRANTY Section 15
Section 16
How to Apply These Terms to Your New Libraries
B. GNU Free Documentation License
PREAMBLE
APPLICABILITY AND DEFINITIONS
VERBATIM COPYING
COPYING IN QUANTITY
MODIFICATIONS
COMBINING DOCUMENTS
COLLECTIONS OF DOCUMENTS
AGGREGATION WITH INDEPENDENT WORKS
TRANSLATION
TERMINATION
FUTURE REVISIONS OF THIS LICENSE
ADDENDUM: How to use this License for your documents