When using Persistence frameworks like Hibernate, JPA etc. on the server side, what are the general practices of passing on the data between client and server ? Are there any existing design patterns for the same ?
Thanks.
I do not know about patterns but I know in a design using for example EJB3 with JPA that it's not recommended to pass JPA entities to client through remote EJB's because proxies stay and it can generate a lot of useless network traffic. You'd better detach your entities or give to client simple value objects.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With