Maybe I'm missing someting here.
I have Hibernate annotated DTO's that I persist in the database. I want to serialize thoose to an applet via servlet.
What is your approach to this. Must I create other dto that are not annotated for serialization?
ex. This is sudo code and will of corse not work.
Applet
Code:
Product prod = new Product( "test" );
ObjectOutputStream.writeObject ( prod );
// get new object from servlet here
Servlet
Code:
Product product = ( Product )ObjectInputstream.readObject();
Product newProduct = ProdDaO.findUnique( product );
// Write to applet.