반응형
http://bistros.tistory.com/entry/mybatis-interface-mapper%EA%B8%B0%EB%B0%98%EC%97%90%EC%84%9C-HashMap-%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0
즉, <Key, Key + 필드> 형태로 나오지 <Key, 1개 필드> 형태는 죽어도 못 뽑아내겠더라...
출처: http://bistros.tistory.com/entry/mybatis-interface-mapper기반에서-HashMap-가져오기 []
출처: http://bistros.tistory.com/entry/mybatis-interface-mapper기반에서-HashMap-가져오기 []
안된다고 아직도 나옴 외국사이트
http://mybatis-user.963551.n3.nabble.com/Mapping-a-java-util-Map-Field-td4026448.html
http://krespo.net/102
- 이건 ibatis 일 경우 성립한다.
- 스택오버플로우
https://stackoverflow.com/questions/9217334/how-to-get-mapstring-string-as-return-type-using-mybatis-annotations
결과적으로 방법이 없는 듯함. 스택오버플로우에 차선책이 그나마 나을듯
반응형
'Web > 스프링' 카테고리의 다른 글
MyBatis 에서 procedure 처리 (0) | 2017.07.18 |
---|---|
자바 VO DTO 차이점(사용하는 방식이 같다고 똑같다고 생각하지 말자!!) 출처: http://itmore.tistory.com/entry/자바-VO-DTO-차이점사용하는-방식이-같다고-똑같다고-생각하지-말자 [IT모아] 출처: http://itm.. (0) | 2017.06.28 |
mybatis에서 selectKey 사용법 (0) | 2017.06.20 |
Java: Spring프로젝트에 이메일 인증 기능 추가 (0) | 2017.06.15 |
[Mybatis] 동적 쿼리 작성 (가변 컬럼) (0) | 2017.06.14 |
댓글