对象关系映射的开始:class元素表示类和数据库中的表的映射关系。
name属性指定持久化类(或者接口)的Java全限定名;
table属性指定要映射的对应的数据库表名,如果省略,则以name作为表名
-->
com.hibernate.customer.customer" table="customer">
...
分类:
移动开发 时间:
2014-10-24 18:59:32
阅读次数:
280
hibernate 是当前最流行的o/r mapping框架,它出身于sf.net,现在已经成为jboss的一部分了。ibatis 是另外一种优秀的o/r mapping框架,目前属于apache的一个子项目了。相对hibernate“o/r”而言,ibatis是一种“sql mapping”的or...
分类:
移动开发 时间:
2014-10-22 17:58:31
阅读次数:
196
A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message conta...
分类:
其他好文 时间:
2014-10-22 14:15:29
阅读次数:
134
using System;
using System.Data.Linq.Mapping;
namespace ConsoleApplication3
{
[Table(Name = "test")]
public class db_test_info
{
[Column(IsPrimaryKey = true, IsDbGenerated = true)...
分类:
数据库 时间:
2014-10-22 11:06:22
阅读次数:
191
Tips:这个例子说明如何在图层中选择或反选几何对象,当点击地图时,触发mapClick事件,激活QueryTask,这里的Query中的query.geometry = event.mapPoint;利用鼠标点击的点来查找包括该选择点的Polygon,然后将查询到的几何要素添加到GraphicsL...
分类:
移动开发 时间:
2014-10-21 17:05:32
阅读次数:
301
今天开始系统的学习ArcGIS For Flex,先从ESRI的例子学起 1 2 6 33 34 35 48 49 50 51 52 This sample demonstrates how to allow...
分类:
移动开发 时间:
2014-10-21 14:59:40
阅读次数:
261
namespace YourNamespace{ /// /// Uses the Name value of the ColumnAttribute specified, otherwise maps as usual. /// /// The type of the ...
分类:
移动开发 时间:
2014-10-21 00:45:58
阅读次数:
3600
不同的Controller之间使用redirect的话,会把上一个controller的mapping以及参数附加在目标controller的对应的URL后面当成参数,这样子看起来很不爽:.../success/?param1=xxx¶m2=xxx. 经过发现,对于Spring ...
分类:
编程语言 时间:
2014-10-20 21:29:51
阅读次数:
175
一、O-R Mapping 简介 一】概念:可以理解为对象和数据库的映射。 二】常用O-R Mapping映射工具 1)Hibernate(全自动框架) 2)lbatis(半自动框架) 3)Commons Dbutils(只是对JDBC的简单封装)二、DBUtils框架(核心类:QueryRu...
分类:
数据库 时间:
2014-10-20 21:13:13
阅读次数:
325
回顾前几篇搬运了AutoMapper的基本用法,自定义映射,相信有看的同学已经会使用AutoMapper这个强大的Mapping工具了。不过细心的你是否还记得前几篇中有提到Map的创建并非是每次都需要Create,那么AutoMapper对于这些如果管理呢?这篇我们就要来看看AutoMapper的配...
分类:
移动开发 时间:
2014-10-20 14:52:53
阅读次数:
180