Hibernate implicit entity restrictions -
Is there a way to add the underlying restriction to the unit in HQL? For example, when we query the list with "HQL" from "client", then we only need to select all the customers, who have some special system ID System ID depending on user session itself, so we The question that needs to be actually changed from "Client to System ID =: System ID", although we do not specify it in the original query
That is what you are after ...
To ensure that you have provided current effective records, enable filters on the session before receiving employees:
session session = ...; Session.enableFilter ("Effective Date") setParameter ("asOfDate", New Date ()); Results of the list = session. BuyerAquiry ("E. From where to employee": Target Celebery "") .setLong ("targetSalary", New Long (1000000)) .list ();
Comments
Post a Comment