The data in the array is mutable, how to set to a fixed class attribute.

1. If you have an entity class, the name of the Test, attribute is

.
{1,2}
{1,2,3}
{1,2,3,4}
.....

how can I set the data into the corresponding bean attribute based on the content and the number of contents in this array?

Mar.06,2021
Menu