Thanks for the reply, Emmanuel.
I don't think that I can go in that direction, because I not only send
objects, which are already in the DB, but I also receive objects,
which are not yet in the DB.
That means that an external application sends such an array
Code:
{ "package.name.MyClass",
"FirstField", // first field, which is a String
1.0, // second field, which is a Double
12 // third field is an Integer
}
It is not possible to use Java serialization as the sending application is not using a Java VM.
Now, I have to instantiate a package.name.MyClass and set the fields in that object according to the values sent by the client and then persist that object to the DB (after some checks).
What would be the best way to do this?
Thanks
Kambiz