Software Alternatives & Reviews

NHibernate VS MyBATIS

Compare NHibernate VS MyBATIS and see what are their differences

NHibernate logo NHibernate

The official NHibernate community site. Download NHibernate. Read blogs. Contribute to the NHibernate Wiki. Find reference documentation.

MyBATIS logo MyBATIS

MyBatis is a top-rated SQL-based data mapping solution used by Programmers, Software Engineers, and Database Architects for developing object-oriented software applications.
  • NHibernate Landing page
    Landing page //
    2020-02-21
  • MyBATIS Landing page
    Landing page //
    2023-04-18

NHibernate videos

Introduction to NHibernate: Setting up your Mappings

More videos:

  • Review - Fluent NHibernate: Getting started w/ your first mappings
  • Review - ActiveCommerce + NHibernate + SPEAK Part 1

MyBATIS videos

Screencast #18: Introduction to mybatis

More videos:

  • Demo - MyBatis Intro & Demo

Category Popularity

0-100% (relative to NHibernate and MyBATIS)
Web Frameworks
37 37%
63% 63
Development
41 41%
59% 59
Application And Data
46 46%
54% 54
Tool
29 29%
71% 71

User comments

Share your experience with using NHibernate and MyBATIS. For example, how are they different and which one is better?
Log in or Post with

Reviews

These are some of the external sources and on-site user reviews we've used to compare NHibernate and MyBATIS

NHibernate Reviews

We have no reviews of NHibernate yet.
Be the first one to post

MyBATIS Reviews

17 Popular Java Frameworks for 2023: Pros, cons, and more
MyBatis is somewhat similar to the Hibernate framework, as both facilitate communication between the application layer and the database. However, MyBatis doesn’t map Java objects to database tables like Hibernate does — instead, it links Java methods to SQL statements. As a result, SQL is visible when you’re working with the MyBatis framework, and you still have control over...
Source: raygun.com

Social recommendations and mentions

Based on our record, MyBATIS seems to be more popular. It has been mentiond 2 times since March 2021. We are tracking product recommendations and mentions on various public social media platforms and blogs. They can help you identify which product is more popular and what people think of it.

NHibernate mentions (0)

We have not tracked any mentions of NHibernate yet. Tracking of NHibernate recommendations started around Mar 2021.

MyBATIS mentions (2)

  • How do you guys go about the persistence layer?
    Other tools you can look at for the data layer are MyBatis (https://mybatis.org/mybatis-3/) and JOOQ (https://www.jooq.org) they put you a little closer to the database than JPA/Hibernate. Source: about 2 years ago
  • Do most established companies use ORMs?
    While its not as well known, have you ever glanced at mybatis? https://mybatis.org/mybatis-3/. Source: over 2 years ago

What are some alternatives?

When comparing NHibernate and MyBATIS, you can also consider the following products

Beego - Beego Web is official blog and documentation website for beego app web framework

Hibernate - Hibernate an open source Java persistence framework project.

Mikro orm - TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns.

Entity Framework - See Comparison of Entity Framework vs NHibernate.

Dapper - Dapper is a user-friendly object mapper for the .NET framework.

Sequelize - Provides access to a MySQL database by mapping database entries to objects and vice-versa.