An easy way to make many pojo into one pojo

I have a registration form with several pages. So, I map one page to one pojo. Finally, when I process the database, I want to make it as one pojo to commit. Any idea to simplify this model.

Thank:)

+3
source share
2 answers

You can create a POJO wrapper that contains your other POJO with additional helper methods in the POJO master.

+5
source

What is wrong with sending multiple POJOs to your service level to commit the database. The Koekiebox suggestion for a POJO wrapper will work, but will also add another place to make changes if you add or remove a POJO.

, POJO .

0

Source: https://habr.com/ru/post/1781011/


All Articles