Hi,
Our application is based on RMI client/server. For get data from database on client side, The created DetachedCriteria for query and calling rmi method with DetachedCriteria parameter and taking result from server. We don't use any hibernate session on Client. All session operation is make on server. Is it good solution?
But now we want to metamodel in DetachedCriteria. We won't use DetachedCriteria properties as String.(Below)
Code:
DetachedCriteria dc = DetachedCriteria.forClass(TblCompanymaster.class);
dc = dc.setFetchMode("tblCompanymasters", FetchMode.JOIN);//we don't use "tblCompanymasters". We want to use TblCompanymaster_.tblCompanymasters
we don't use "tblCompanymasters" as string. We want to use TblCompanymaster_.tblCompanymasters.
What is the solution for using metamodel on client side for query. Is there alternative DetachedCriteria class for use Metamodel?
Thank you