模型是使用Fluent NHibernate映射的,但基本上如下所示。CategoryFeature基本上,产品可用的功能都列在ProductCategoryFeatureValue表中例如,在SQL术语中搜索I为643229和667811的两个特性,我会这样做:JOIN ProductCategoryFeatureValue AS feature1((SELECT id
我想使用JPA2.0Criteriaapi来构建带有subselect的order by子句。我知道你可以在普通的SQL中做到这一点,但是它能用criteriaapi来映射吗?table2 priority by address
select o from Order o order by (select p.priority from OrderPriority p where