码迷,mamicode.com
首页 >  
搜索关键字:mybatis3 collection resultmap    ( 7184个结果
freemarker报错之十四
1、错误描述 freemarker处理哈希表的内建函数 张三强 Expected collection or sequence. maps evaluated instead to freemarker.core.HashLiteral$SequenceHash on line 13, column 17 in map.ftl....
分类:其他好文   时间:2014-06-20 12:34:57    阅读次数:392
spring3+mybatis3+mysql
玩了一下mybatis,网上源码说的不太清楚。自己写了一下。希望对大家有用(spring3+mybatis3+mysql)实体类:package org.my.entity;public class User { private Integer id; private String na...
分类:数据库   时间:2014-06-07 07:14:07    阅读次数:318
【Java基础】Java面试题目整理与讲解(二)
1.Collection 和 Collections 的区别。 Collection 是集合类的上级接口,继承于他的接口主要有 Set 和 List. Collections 是针对集合类的一个帮助类,他提供一系列静态方法实现对各种集合的搜索、排序、线程安全化等操作。  2.HashMap 和 Hashtable 的区别。  HashMap 是...
分类:编程语言   时间:2014-06-05 01:25:20    阅读次数:296
Java集合框架学习笔记之集合与Collection API
一、CollectionAPI     集合是一系列对象的聚集(Collection)。集合在程序设计中是一种重要的数据接口。Java中提供了有关集合的类库称为CollectionAPI。     集合实际上是用一个对象代表一组对象,在集合中的每个对象称为一个元素。在集合中的各个元素的具体类型可以不同,但一般说来,它们都是由相同的类派生出来的(而这一点并不难做到,因为Java中的所有类...
分类:编程语言   时间:2014-06-04 21:48:38    阅读次数:381
迭代任意8种数据类型数组
写的是一个jstl标签处理器类,可以迭代任意数组 import java.io.IOException;import java.lang.reflect.Array;import java.util.ArrayList;import java.util.Collection;import java....
分类:其他好文   时间:2014-06-02 20:07:54    阅读次数:215
畅销书对Java中Iterator的理解误区
最近放假,闲来无事,便翻看以前看过的一些书,竟然发现有些书本(甚至是一些畅销书)对Java中Iterator有很大的误解,比如某畅销书在Collection那一章有这么一句话:“当使用Iterator对集合元素进行迭代时,Iterator并不是把集合元素本身传给了迭代变量,而是把集合元素的值传给了迭代变量,所以修改迭代变量的值对集合元素本身没有任何影响。”但是经过自己实例测试发现根本不是这样!...
分类:编程语言   时间:2014-06-02 18:58:10    阅读次数:316
【leetcode】Permutations
问题: Given a collection of numbers, return all possible permutations. For example, [1,2,3] have the following permutations: [1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3,2,1]. 分析: ...
分类:其他好文   时间:2014-06-01 15:04:42    阅读次数:259
【leetcode】Permutations II
问题: Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example, [1,1,2] have the following unique permutations: [1,1,2], [1,2,1], and...
分类:其他好文   时间:2014-06-01 13:03:12    阅读次数:324
LeetCode: Subsets II [091]
【题目】 Given a collection of integers that might contain duplicates, S, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contain duplicate subsets. For example, If S = [1,2,2], a solution ...
分类:其他好文   时间:2014-06-01 08:51:06    阅读次数:292
Hello Mybatis 03 数据关联
ResultMap在实际的开发中,数据库不总是我们希望看到的样子。比如我们希望User的主键是id但是数据库偏偏喜欢叫它u_id,这样一来原先的resultType似乎就失效了,不带这么玩的,整个人都不好了。于是mybatis给出了他的方案——resultMap。把我们从复杂的命名问题中解救出来~~...
分类:其他好文   时间:2014-05-31 18:44:40    阅读次数:321
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!