- 博客(5)
- 资源 (7)
- 收藏
- 关注
原创 用Codesmith 5.2的Nhibernate模板从ORACLE数据库生成实体类和数据访问类
用Codesmith 5.2的Nhibernate模板从ORACLE数据库生成实体类和数据访问类其实也是看了codesmith的video(http://www.codesmithtools.com/video/nhibernate.html)做的,虽然作者基于的前一个版本(vs2008,nhibernate2.0),但和最新的3.0 nhibernate模板操作是一样的开始之前...
2011-03-11 15:39:27 155
原创 Code First EF CTP5试手
.net 的Entity framework提供的功能越来越完善,最新的几个ctp特性都很让人期待,忍不住就想试试相比较之前的ef,code first的ef最让人激动的特性就是不用定义or mapping关系了,一切基于convention就可以工作了,这让数据库实体的crud编写成了美妙的享受(和hava的jpa基本一样)我是从asp.net mvc 3开始的,之所以用mvc3,原因是...
2011-02-11 15:26:11 151
原创 Oracle数据库的编码问题
一直没有意识到数据库的编码,这一次,碰到了一个很奇特的问题,varhcar2的字段存中文都是乱码,nvarhcar2用sql插入的中文也是乱码,几经折腾,才知道Oracle数据库在安装的时候,是可以指定编码,其中有两种编码要指定NLS_CHARACTERSET US7ASCIINLS_NCHAR_CHARACTERSET AL16UTF16 而碰到的数据库设...
2010-12-30 14:50:10 284
Grails-groovy在gsp中的强大表现
Gsp是grails默认的页面渲染技术,当你对groovy语言有了充分了解了以后,你会发现用gsp来渲染页面是多么的强大和方便,特别是相比jsp的标签而言 jsp的标准标签库是好用的,遗憾的是他不能在表达式里调用方法,特别是这些方法有时还需要参数,比如<c:if test='${bean.method(agrs0,agrs1)}'> ... #jsp不能这么写c:if&g...
2009-03-01 11:48:38 429
原创 Grails入门--从Controller中传递多个变量到gsp中
刚开始学习Grails,记录下学习的一点一滴,和朋友们一起分享 controller的action方法的最后一句往往都是调用render方法或是返回一个model供gsp渲染,一直不知道如何传递多个变量到gsp中,后来发现原来这个model实际是个hashmap,于是这么试试了下这样的代码 def create = { def userInstance = new User...
2009-02-22 13:50:00 253
Groovy Programming- An Intro for Java Developers(2007)
2009-02-05
The Groovy Programming Language
2009-02-05
Ajax Development With Grails Dojo
2008-12-09
(Grammar) - Cambridge University Press - English Vocabulary in Use - Upper-Intermediate & Advanced
2008-10-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人