NHibernate & Many-to-Many Relationships

Our next step in our exploration of some of the differences between NHibernate and MyBatis.NET takes us to map composition. In MyBatis.NET, this is a way to reuse defined maps in a DRY way; the post can be found here. As usual, we will be building on the code base we’ve build in this series; [...]

 
NHibernate vs. MyBatis.NET - Type Conversions & Type Handlers

Continuing in our series of comparisons between NHibernate and MyBatis.NET, we will reprise our take on simple type conversions and type handlers from an NHibernate perspective, comparing how said functionality stands up to what is offered in MyBatis.NET. The prior post that covered type conversions and type handlers in MyBatis.NET can be found here. As [...]

 
NHibernate & MyBatis.NET Comparison - Stored Procedures

This is the second post in a series where we explore NHibernate functionality from the perspective of a legacy database. In this post, we will look at how to call pre-existing stored procedures and bring back their return values. We will build on the project we started in the prior post, so refer there for [...]

 
MyBatis.NET Tips & Tricks Part 6 - Submaps & Discriminators

In this part of our MyBatis.NET series, we’ll go over how to use submaps and discriminators to help us instantiate the right object in an inheritance hierarchy declaratively. As usual, we will be building on the code build in prior parts of this series, and will be using the AdventureWorks database as our target database. [...]

 
MyBatis.NET Tips & Tricks Part 5 – Multiple Results In One Map

In this part of our MyBatis.NET series, we’ll go over how to hydrate multiple object types with one mapping. Also, we’ll review the use of submaps and how they help to deal with inheritance hierarchies. We build upon the same code base used in prior parts of this series, which uses the AdventureWorks database as [...]

 
IBatis.NET Tips & Tricks Part 4 – Nulls & Lists

In this part of our IBatis.NET series, we’ll go over how to handle null values declaratively. Also, we’ll review how to hydrate list types with your query results instead of having to define new classes. We build on the code from the prior parts of this series, so start there if you want to be [...]

 
IBatis.NET Tips & Tricks Part 3 – Map Composition

In this part of our IBatis.NET series, we’ll go over how to compose maps to reduce redundancy. We build on the code from the prior parts of this series, so start there if you want to be fully up to speed. As in prior parts, we use the AdventureWorks database. Map Composition Most, if not [...]

 
IBatis.NET Tips & Tricks Part 2 – Type Conversions & Type Handlers

In this part of our IBatis.NET series, we’ll go over a couple of ways you can handle type mismatches between your database and your objects. We build on the code from Part 1 of this series, so start there if you want to be fully up to speed. Automatic Conversions The simplest (and possibly the [...]

© 2011 Musings of the Bare Bones Coder Suffusion theme by Sayontan Sinha