oohave / rapid-framework

Automatically exported from code.google.com/p/rapid-framework
0 stars 0 forks source link

MS SQLServer 's DateTime smalldatetime #19

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
 rapid-framework 真是一个好东西,仔细研究了一下  
发现该框架会把 MS SQLServer 2K 的DateTime 或smalldatetime 
错误地识别为
Stamptime(时间截),导致在SSH(extjs3.0)不能显示和修改日期!期望能
修正!

Original issue reported on code.google.com by qiquan...@gmail.com on 10 Nov 2009 at 3:15

GoogleCodeExporter commented 8 years ago
这个你或许可以提供补丁以便我来修正!

Original comment by bad...@gmail.com on 10 Nov 2009 at 3:44

GoogleCodeExporter commented 8 years ago
由于目前我主要是MS SQLServer,我直接更改过来!
建议你增加判断 如果MS SQLServer 就更正过来!

Original comment by qiquan...@gmail.com on 23 Nov 2009 at 4:48

GoogleCodeExporter commented 8 years ago
v3.5以后的版本将会提供类型映射

如下,在generator.properties中配置
# java type mapping
java_typemapping.java.sql.Date=java.util.Date
java_typemapping.java.sql.Timestamp=java.util.Date
java_typemapping.java.math.BigDecimal=Long
java_typemapping.java.lang.Byte=Integer
java_typemapping.java.lang.Short=Integer

Original comment by bad...@gmail.com on 30 Mar 2010 at 4:27