NHibernate
NHibernate
Good morning everybody, first of all I want to apologize for my absence in December. I am really sorry but I was ‘trying’ to deliver a component in my office and I was so busy and tired that I didn’t have time for the blog. Let’s start this ‘holiday’ posts with an interesting review of a software architecture book written by two friends of mine: Andrea Salatarello and Dino Esposito. The title is: Microsoft .NET: Architecting Applications for the Enterprise (PRO-Developer) (Paperback) available at Amazon.com for 29.69 USD. Chapters and sections. The book...
In the previous post we saw how to map an entity with a composite-id. Well but now if you have mapped an entity in this way and you need to create a collection of this entity or maybe you have a related child class that uses this primary keys … you are in trouble! The way to solve the problem is very easy. First of a short example to understand what I’m talking about: 1: class Foo {
2:...
I’m working with the new version (2.0 GA) of NHibernate. The problem I have encountered today is about the composite-id. Let’s say we have an entity that doesn’t have a personal id field. We don’t want to use the GUID or any other auto id generator class. We must implement the primary key logic in the corresponding table in the database. Now, imagine to have this table: Key Column Name SQL...