반응형

제목:


nested exception is org.apache.ibatis.exceptions.PersistenceException: nullpoint익셉션일떄

 

sql 문상에서 ,등이 들가 있는지 확인 혹은 resultmap상에column명이 긴지 확인

 

spring상에서

 

<resultMap type="프로젝트명" id="timevo">
   <result column="hour" property="hh"/>
  <result column="min" property="mm"/>
  <result column="sec" property="ss"/>
 </resultMap>

 

 



alias로 선언해서 column을 줄여줄 필요성이있음

 

ex)

select hour(sec_to_time(unix_timestamp(date_ADD(받아온 시간명,interval 2 hour))-unix_timestamp(now()))) as hour

from senseworld.input_task where 어딘지 order by createTime desc limit 1

 

hour(sec_to_time(unix_timestamp(date_ADD(받아온 시간명,interval 2 hour))-unix_timestamp(now()))) as hour

 

긴콘솔 as 명명

 

반응형

'코딩 > etc' 카테고리의 다른 글

websoket  (0) 2016.03.10
우분투 설정  (0) 2016.01.05
mysql 문 정리  (0) 2015.11.20

+ Recent posts