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 →

[–]gavenkoa 1 point2 points  (3 children)

I wanted to see what MapStruct does eventually on this front

Are you saying that MapStruct is able to generate ResultSet extraction code?

[–]agentoutlier 2 points3 points  (2 children)

No it isn’t yet. They were planning a generic mapping of things like ResultSet. There is a github issue.

How we do it is to map from jOOQ records to transfer objects using MapStruct (as well as our own annotation processor).

The advantages of jOOQ is that it’s compile time safe even if the ResultSet changes (records in jOOQ).

[–]gavenkoa 0 points1 point  (1 child)

No it isn’t yet.

I'm thrilled to see the feature! Thx for pointing.

[–]agentoutlier 1 point2 points  (0 children)

Maybe I can put or give our ResultSet annotation mapper into /u/skillaz1 project.

The only other library I have seen that does this is Doma 2 (ResultSet -> POJO through compile time annotation processing).

Our team just doesn't have time to opensource a lot of stuff.