Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does myBatis implement JPA?

An easy question I suppose

like image 261
Boris Pavlović Avatar asked Nov 19 '10 13:11

Boris Pavlović


People also ask

Is MyBatis a ORM?

Both Hibernate and MyBatis are open source Object Relational Mapping (ORM) tools available in the industry.

Should I use MyBatis?

MyBatis is normally used in the scenarios when the data model does not match with the object model and complete control over the SQL is required in the project whereas Hibernate tool is used when the developer has complete control over the database and the data-object mapping is synced properly.

Does MyBatis Hibernate?

MyBatis is an open-source, lightweight, persistence framework. It is an alternative to JDBC and Hibernate. It automates the mapping between SQL databases and objects in Java, .

What are JPA implementations?

The JPA implementation is typically called persistence provider. The mapping between Java objects and database tables is defined via persistence metadata. The JPA provider will use the persistence metadata information to perform the correct database operations.


1 Answers

No. iBatis is not an ORM mapper like Hibernate, so it doesn't implement JPA. JPA isn't even mentioned in official user guide.

By the way, iBatis is retired. It's been renamed to myBatis, so you should use that instead.

like image 98
darioo Avatar answered Sep 21 '22 09:09

darioo