Java Micro ORM equivalent [closed]
up vote 51 down vote favorite 21 |
What would be the closest equivalent in Java to a Micro ORM such as Dapper, PetaPoco, Massive or CodingHorror? java subsonic dapper petapoco massive
|
||||||||||||
closed as off-topic by Laurel, manetsus, Lambda Ninja, Compass, Edvin Tenovimas Aug 6 ‘16 at 6:57This question appears to be off-topic. The users who voted to close gave this specific reason:
If this question can be reworded to fit the rules in the help center, please edit the question. |
|||||||||||||
|
6 Answers
up vote 20 down vote accepted |
I recommend Spring JDBC templates. While it‘s not a "true" ORM, it‘s a pleasure to use where Hibernate seems to be an overkill.
|
||||||||||||
|
up vote 23 down vote |
sql2o seems like a Dapper alternative - thin wrapper around JDBC
github - https://github.com/aaberg/sql2o site - http://www.sql2o.org/
|
||||
|
up vote 12 down vote |
Here‘s a list of tools that "ease the pain" when interacting with simple JDBC:
And here‘s a list of tools that go a bit beyond simple JDBC, i.e. provide some ORM / ActiveRecord facilities
|
||||||||
|
up vote 4 down vote |
Another interesting light ORM is JDBI. Here is Five minute intro It has two alternative APIs: Fluent API
and SQL Object API where SQL statements are mapped to methods with declarative interfaces like this:
|
||||||||
|
up vote 3 down vote |
Also checkout SimpleFlatMapper It‘s a performant simple ResultSet to Object mapper. It just plug on top of jdbc and gives far better performance than Hibernate Ibatis or even sql2o. It easily integrate JdbcTemplate and provides constructor, setter and field injection.
|
||||
|
up vote 2 down vote |
This one doesn‘t seem to be mentioned here yet: dalesbred Similar to sql2o and dapper...
|
||||
|
原文地址:https://www.cnblogs.com/yasepix/p/8176398.html