0

I need to send the content of a JTable to a REST Service. For this purpose, I'd like to send the TableModel to the REST Service. However, I can see that the TableModel class is not Serializable.

Is there any other option other than copying the TableModel in a wrapper Java class (Serializable)?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
user2824073
  • 2,407
  • 10
  • 39
  • 73

1 Answers1

2

Usually table's row is dto. So you need send just collection of dtos using available marshallers (json, xml etc).

Sergii Lagutin
  • 10,561
  • 1
  • 34
  • 43