我正在尝试在Hibernate标准中编写oracle子查询但无法执行此操作。任何人都可以帮助我实现这一目标。下面是我的oracle查询。
var jteamNetworkPanel = null;
function searchByPanel() {
document.getElementById("divtDetails").style.visibility = "";
var content = document.getElementById("divtDetails").outerHTML;
$(document).ready(function () {
jteamNetworkPanel = $.jsPanel({
draggable: {
containment: "#tDiv"
},
selector: '#tDiv',
content: content,
size: { width: 'auto', height: 'auto' },
title: "Test",
position: { top: 50, left: "center" },
theme: 'warning'
});
});
}
先谢谢。
答案 0 :(得分:0)
我为一对多关系表写了一个例子 你可以从中获得参考
Criteria person = session.getCurrentSession().createCriteria(Person.class).createAlias("personId", "personId");
person.add(Restrictions.disjunction().add(Restrictions.ilike("PersonFirstname",Search,MatchMode.ANYWHERE))
.add(Restrictions.ilike("personId.prop1",Search,MatchMode.ANYWHERE))
.add(Restrictions.ilike("personId.col1",Search,MatchMode.ANYWHERE))
.addOrder(Property.forName("colName").desc()
.addOrder(Property.forName("colName").asc());