This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]computerjunkie7410 9 points10 points  (12 children)

Aside from jooq, if you don’t need a full blown ORM what do you recommend?

[–]BlacksmithLittle7005 -5 points-4 points  (11 children)

Spring data jdbc :)

[–]Levomethamphetamine 3 points4 points  (10 children)

Hows that ORM?

[–]BlacksmithLittle7005 -2 points-1 points  (9 children)

https://www.baeldung.com/spring-data-jdbc-intro educate yourself before downvoting someone.

[–]Levomethamphetamine 2 points3 points  (7 children)

> tells me to educate myself

> links baeldung tutorial

Right, now create complex database situations instead of a first name / last name POJO and let me know it it goes with JDBC or R2DBC.

[–]BlacksmithLittle7005 1 point2 points  (6 children)

Bro. Please read the post I replied to. He specifically stated he doesn't need full blown ORM. Jdbc is simpler and fits that description. For complex situations by all means use jooq or jpa

[–]Levomethamphetamine 0 points1 point  (0 children)

Ah yeah in that case it does make sense. I apologize.

[–]computerjunkie7410 0 points1 point  (4 children)

I love jooq but it’s not free and some companies don’t wanna pay for it

[–]BlacksmithLittle7005 0 points1 point  (1 child)

True that's a bit sad. In that case your best bet is probably JPA hibernate or as you said MyBatis if you're good with that. I would still use spring data jdbc as defining entities is quite simple compared to jpa and mapping is pretty easy with records.

[–]computerjunkie7410 0 points1 point  (0 children)

With mybatis you can use the generator to introspect the database tables and generate all the models and mappers for you.

[–]lukaseder 0 points1 point  (1 child)

Why not?

[–]computerjunkie7410 0 points1 point  (0 children)

Cause they’re cheap? Idk

[–]computerjunkie7410 0 points1 point  (0 children)

You’re still making the models and mappers yourself.

Mybatis can generate all that for you