---
title: "日记20100613"
author: "hance1000000"
date: "2010-06-13T09:57:31Z"
tags: []
categories: ["企业架构"]
slug: "20100613"
draft: false
lastmod: "2010-06-13T10:02:02Z"
id: 691118
url: "https://hance1000000.iteye.com/blog/691118"
---

1.struts的默认action配置scope为session

 

2.oracle的取按一定顺序的rownum=1 最近一条记录要从子查询中取

select LONGITUDE,LATIDUDE from (select t.LONGITUDE,t.LATIDUDE from EVENT\_TRUCK t   where t.GPSSN='123456' order by t.HAPPENTIME desc ) where rownum=1

 

3.oracle中日期映射成实体类时，需用java.sql.Date(Time Timestamp) 这样才可以用hibernate的hql，不然会有异常