MyBatis is a first class persistence framework with support for custom SQL, stored procedures and advanced mappings. MyBatis eliminates almost all of the JDBC code and manual setting of parameters and retrieval of results. MyBatis can use simple XML or Annotations for configuration and map primitives, Map interfaces and Java POJOs (Plain Old Java Objects) to database records. Every MyBatis application centers around an instance of SqlSessionFactory. A SqlSessionFactory instance can be acquired by using the SqlSessionFactoryBuilder. SqlSessionFactoryBuilder can build a SqlSessionFactory instance from an XML configuration file, or from a custom prepared instance of the Configuration class. Building a SqlSessionFactory instance from an XML file is very simple. It is recommended that you use a classpath resource for this configuration, but you could use any InputStream instance, including one created from a literal file path or a file:// URL.

Features

  • A first class persistence framework with support for custom SQL
  • Makes it easier to use a relational database with object-oriented applications
  • MyBatis couples objects with stored procedures
  • Uses a XML descriptor and annotations
  • MyBatis data mapper is simpler than other object relational mapping tools
  • Eliminates manual setting of parameters and retrieval of results

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow MyBatis

MyBatis Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of MyBatis!

Additional Project Details

Programming Language

Java

Related Categories

Java Database Software, Java Frameworks, Java Object Oriented Software

Registered

2021-03-29