Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 114745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T02:54:34+00:00 2026-05-11T02:54:34+00:00

For me the answer is currently: No, I would use iBatis, because NHibernate is

  • 0

For me the answer is currently: No, I would use iBatis, because NHibernate is a pain, when the database model and the object model are not in synch. If I don’t have full control over the database I end up with a lot of work.

Why do I ask?

Well, first of all: I never used NHibernate. I just know it from the surface. I have read about the advantages of iBatis for legacy databases.

Second: Recently I had a discussion with someone who worked with Hibernate (jep, without ‘N’ before Hibernate). He told me that the ORM frameworks are now pretty advanced and advocated Hibernate. Since I was not interested in NHibernate, I didn’t keep track of the recent developments.

Maybe I its time to rethink my answer, or not?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T02:54:35+00:00Added an answer on May 11, 2026 at 2:54 am

    iBatis is certainly easy to map objects to legacy database systems.

    More recently NHibernate 1.2 and 2.0 have a feature set that may make you rethink iBatis.

    NHibernate works with composite keys, which can occur frequently in older databases, they aren’t always pleasant to work with but support is there for this.

    NHibernate can utilise Stored Procedures for CRUD operations on entities, also database views.

    Collections can be custom stored procedures or SQL queries. Collections can use the property-ref attribute when the Foreign Key relationship doesn’t map directly to the Primary Key on the other side.

    Some of these features may take away from the performance/power of nhibernate, ie Lazy Loading with property-ref doesn’t work (at all?), but is most cases there are reasons for this.

    Other points: (which aren’t really related to your legacy database but still can help decide on a technology choice)

    The Nhibernate community appears much richer than the iBatis. I’m on both lists and the volume of support for NHibernate is quite large compared to the iBatis group. So support should be easier.

    Also there is a growing amount of contrib/3rd party tools for NHibernate. Things like The NHibernate Profiler, the Nhibernate Query Analyzer, NHibernate Contrib, Fluent NHibernate to name a few.

    Perhaps you can expand on what advantages you believe iBatis currently has. NHibernate has certainly been quite active recently and has gained many new features, a lot of which do assist in legacy/hard to modify schemas.

    And to answer the question, yes we do use NHibernate with legacy databases that have awful relationships, composite keys, broken relationships. We still also have a small amount of code based on iBatis. We no longer write any more iBatis code though.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an inline lambda expression that I would like to use throughout my
I'm pretty sure the answer is you can't use templates, you have to use
Currently I have most of my form's controls disabled at launch because you cannot
I currently have a metric model, that can take two operands and perform a
Currently, db4o does not allow indexing on the contents of collections. What object databases
We have a SQL Server 2005 database, and currently all our users are connecting
I've read this answer about eight-five times, but there's something I'm not understanding correctly:
We have quite a few validation methods that need to access repositories / database
I currently have the following code to generate a sales report over the last
I'm trying to understand how to use Type Converters after reading this answer to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.