inquiries about generating VO or DTO (Java) using mybatis

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

inquiries about generating VO or DTO (Java) using mybatis

K tsup
Hi,
I am making spring boot application for making table from tsv or csv files.
I was able to do that, but after the problem is how to make DTO or VO for pouring data for the tables. Will it be possible using Mybatis, auto-generating DTO or VO from existing tables ?! If it is possible through it, could I get some snippet or example or how to do that please?

I love Mybatis and I am really happy to be here!
Thank you in advance!

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/c66e7f43-f1b9-4868-9da3-3564e688ce1en%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: inquiries about generating VO or DTO (Java) using mybatis

Jeff Butler
Welcome!

You can use MyBatis generator to generate classes from existing tables. See here for a quick start guide: http://mybatis.org/generator/quickstart.html

MyBatis generator builds different kinds of classes depending on how you want to use the generated objects. This is captured in the idea of a "runtime". For all new projects I recommend using the default runtime (MyBatis3DynamicSql) - it generates the most flexible and capable code. You can read about using the generated objects here: http://mybatis.org/generator/generatedobjects/dynamicSqlV2.html

Everything created by MyBatis generator is compatible with the MyBatis support for Spring Boot. You can read about our Spring Boot starter here: http://mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/

Jeff Butler



On Mon, Aug 24, 2020 at 12:01 PM K tsup <[hidden email]> wrote:
Hi,
I am making spring boot application for making table from tsv or csv files.
I was able to do that, but after the problem is how to make DTO or VO for pouring data for the tables. Will it be possible using Mybatis, auto-generating DTO or VO from existing tables ?! If it is possible through it, could I get some snippet or example or how to do that please?

I love Mybatis and I am really happy to be here!
Thank you in advance!

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/c66e7f43-f1b9-4868-9da3-3564e688ce1en%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CAKpaNj6AfS26CXTcJJfWks%2BOEEgu3Pse0m_Nga2oz91V9fGjFw%40mail.gmail.com.