光辉飞翔

导航

 

2012年10月15日

摘要: hiabernate 中createQuery与createSQLQuery区别,使用经验hibernate 中createQuery与createSQLQuery两者区别是:前者用的hql语句进行查询,后者可以用sql语句查询前者以hibernate生成的Bean为对象装入list返回后者则是以对象数组进行存储所以使用createSQLQuery有时候也想以hibernate生成的Bean为对象装入list返回,就不是很方便突然发现createSQLQuery有这样一个方法可以直接转换对象Query query = session.createSQLQuery(sql).addEntity( 阅读全文
posted @ 2012-10-15 15:17 光辉飞翔 阅读(205) 评论(0) 推荐(0)
 
摘要: <s:form action="%{doc.id==null?'doclib/doclib!save':'doclib/doclib!update'}" id="docform" theme='simple' enctype="%{doc.id==null?'multipart/form-data':'application/x-www-form-urlencoded'}" > 阅读全文
posted @ 2012-10-15 14:56 光辉飞翔 阅读(214) 评论(0) 推荐(0)
 
摘要: <jmesa:htmlColumn property="status" title="文档状态" filterable="false" width="3%"><div align="center"><c:choose><c:when test="${'0' eq item.status}">审核中</c:when><c:when test="${'1' eq item. 阅读全文
posted @ 2012-10-15 14:52 光辉飞翔 阅读(1624) 评论(0) 推荐(0)
 
摘要: 中软高科(北京)科技有限公司联系人:唐先生(联系时请说在赶集网上看到的)联系电话:82826536 申请职位 公司地址: 北京北京市海淀区中关村软件园孵化器1号楼B座-----------------------北京华育网科技发展有限公司 -------------------------联系电话:点击查看 联 系 人:任老师在线沟通:联系地址:北京市朝阳区朝外大街19号华普国际大厦0723B---------------------北京中科金财科技股份有限公司------------------------------------------------website:http://www. 阅读全文
posted @ 2012-10-15 11:30 光辉飞翔 阅读(168) 评论(0) 推荐(0)
 
摘要: <a href="javascript:if(confirm('确认要删除吗?')){window.location='${ctx}/oa/meetingroom_delete?id=${item.id}&'}" class="fg-button ui-state-default fg-button-icon-solo ui-corner-all" title="删除"><span class="ui-icon ui-icon-trash"></ 阅读全文
posted @ 2012-10-15 11:21 光辉飞翔 阅读(2209) 评论(0) 推荐(0)
 
摘要: <script type="text/javascript"> var startTime = new Date().getTime(); $(document).ready(function(){ test1(); }) function test1(){ var endTime2 = new Date().getTime(); var a = endTime2 - startTime; $("<div>jQuery的ready() : "+a+" ms</div>").appendTo(&quo 阅读全文
posted @ 2012-10-15 11:00 光辉飞翔 阅读(101302) 评论(0) 推荐(0)
 
摘要: public abstract class BaseHibernateDao<E, PK extends Serializable> extends HibernateDaoSupport implementsEntityDao<E, PK> {public List<DocumentUser> getByDocTransferId(Long id) { //1.String hql = "from DocumentUser where doctransferId=" + id; return this.getHibernateTempl 阅读全文
posted @ 2012-10-15 09:55 光辉飞翔 阅读(938) 评论(0) 推荐(0)