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

Other Useful Business Software
$300 in Free Credit Towards Top Cloud Services Icon
$300 in Free Credit Towards Top Cloud Services

Build VMs, containers, AI, databases, storage—all in one place.

Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale.
Get Started
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