Click here to Skip to main content
15,885,953 members
Articles / Programming Languages / XML

Building a Middle Tier Component using NHibernate and Spring.NET

Rate me:
Please Sign up or sign in to vote.
4.50/5 (21 votes)
10 May 2006CPOL8 min read 158.5K   2.4K   109  
Building a highly pluggable middle-tier component with NHibernate and Spring.Net.
<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.0">
	<!-- Class name is the name of the Entity Class. And Insert the table name on which the Entity will be stored--> 
	<class name="SpringClient.Utility.Product.UProductDTO, SpringClient" table="UProduct">
		<!-- The PRIMARY KEY specification. For the sake of simplicity I am using 
			the increment mode of ID Generation -->
		<id name="ID" column="uproductID" unsaved-value="0">
			<generator class="increment" />
		</id>
		<!-- Version Number is Important for the Data Concurrency-->
		<version name="VersionNumber"/>
		<property name="Name" column="name" not-null="true" unique="true" />
	</class>
</hibernate-mapping>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Netherlands Netherlands
Engineer Powered by the Cloud

Comments and Discussions