Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有多个服务调用我的数据库服务,它使用 Hibernate,我希望远程服务能够创建一个查询,然后将其传递给进程。理想情况下,我想传递一个 Criteria Object,但看起来它需要一个他们无法访问的 Session。是否有类似于我可以使用的 Criteria Object 的过程?
使用 DetachedCriteria (org.hibernate.criterion.DetachedCriteria)