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
  • 166,747
  • 40
  • 210
  • 420
user2824073
  • 2,337
  • 10
  • 35
  • 72

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,093
  • 1
  • 32
  • 41