christian wrote:
Don't expose Hibernate APIs (your persistence layer!) directly to your client.
Sure I will spread the word!
You are right I may not be expossing the Persistance layer to the users
but I have to let the users to query(read only) domain object on which they build their applications on.
To acheive this I need to either detach the criteria API and make it serializable.
The thick RMI client that includes data object, changed criteria is distributed to users.
I work for non profit organization will it matter when it comes to liscencing If I distribute the changed and detached criteria API code in my codebase.
Appreciate your feedback.
--Varnika