withshenhui / rapid-framework Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/rapid-framework
Automatically exported from code.google.com/p/rapid-framework
rapid-framework
Original issue reported on code.google.com by [email protected]
on 24 Feb 2009 at 1:49
添加了spring_rest插件后提示一下信息。引用一个springRC2版本的
spring_web.jar
问题依旧没有解决,出现了jar包版本兼容性的错误。
严重: Exception starting filter HiddenHttpMethodFilter
java.lang.ClassNotFoundException:
org.springframework.web.filter.HiddenHttpMethodFilter
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:13
87)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:12
33)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConf
ig.java:249)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterC
onfig.java:397)
at
org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.
java:108)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3800)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4450)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:987)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:909)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:495)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1206)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:314)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.ja
va:119)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:583)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Original issue reported on code.google.com by [email protected]
on 20 Nov 2009 at 2:03
我在使用的过程中碰到的一些问题,有可能是其它人没有碰��
�过,我碰到了,麻烦帮忙解决一
下,谢谢。
Original issue reported on code.google.com by [email protected]
on 24 Sep 2009 at 12:03
Attachments:
rapid-framework 真是一个好东西,仔细研究了一下
发现该框架会把 MS SQLServer 2K 的DateTime 或smalldatetime
错误地识别为
Stamptime(时间截),导致在SSH(extjs3.0)不能显示和修改日期!期望能
修正!
Original issue reported on code.google.com by [email protected]
on 10 Nov 2009 at 3:15
=
Original issue reported on code.google.com by [email protected]
on 10 Jun 2009 at 3:16
What steps will reproduce the problem?
1.按照视频操作,以及把java-src改成src;
2.启动Tomcat6(视频中是Tomcat 5.5)
3.访问页面,提示:No bean named 'sessionFactory' is defined
What is the expected output? What do you see instead?
期望出现数据列表页面
出现:
System Runtime Error:
No bean named 'sessionFactory' is defined
What version of the product are you using? On what operating system?
rapid-framework-v2.0.1.40
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 30 Jun 2009 at 8:51
3.0版如何与SPRING SECURITY 集成?
Original issue reported on code.google.com by [email protected]
on 30 Nov 2009 at 2:49
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 16 Oct 2009 at 2:36
<#list table.columns as column>
<#if column.unique && !column.pk>
public ${className} getBy${column.columnName}(${column.javaType} v) {
return
(${className})getSqlSession().selectOne("${className}.getByUsername",v);
}
</#if>
</#list>
以上为模板源程序
我觉得是不是应改为:
<#list table.columns as column>
<#if column.unique && !column.pk>
public ${className} getBy${column.columnName}(${column.javaType} v) {
return
(${className})getSqlSessionTemplate().selectOne("${className}.getBy${column.colu
mnName}",v);
}
</#if>
</#list>
修改:getSqlSession()--》getSqlSessionTemplate()
getByUsername--》getBy${column.columnName}
例如:
public UserLoginSession getByUserid(java.lang.String v) {
//return
(UserLoginSession)getSqlSession().selectOne("UserLoginSession.getByUsername",v);
// The method getSqlSession() is undefined for the type UserLoginSessionDao
return
(UserLoginSession)getSqlSessionTemplate().selectOne("UserLoginSession.getByUseri
d",v);
}
Original issue reported on code.google.com by [email protected]
on 26 Feb 2010 at 7:44
<script>
new Validation(document.forms[0],{onSubmit:true,onFormValidate :
function(result,form) {
var finalResult = result;
return disableSubmit(finalResult,'submitButton');
document.forms[0].j_username.value = document.forms
[0].orgId.value+"~###~"+document.forms[0].j_username.value;
}});
</script>
我想在校验以后,把两个域的值相加传到后面,不知道怎么实现呢?谢谢!!!
你使用的相关插件组合是什么?
你还可以在此后面增加其它任何详细信息.
Original issue reported on code.google.com by [email protected]
on 15 Dec 2009 at 9:04
开发ext插件并整合在主干中.
插件存放目录:
plugins/ext
原有的ext插件可以删除.
Original issue reported on code.google.com by [email protected]
on 29 Jul 2009 at 2:13
What steps will reproduce the problem?
1.
2.
3.
What is the expected output? What do you see instead?
Please use labels and text to provide additional information.
Original issue reported on code.google.com by [email protected]
on 16 Oct 2009 at 2:39
生成的的代码:
1.javacommon.base.BaseRestSpringController<Entity, PK> 中
The import org.springframework.web.bind.annotation.PathVariable cannot be
resolved
2.org.springframework.web.servlet.view.ContentNegotiatingViewResolver
中 The import org.springframework.http cannot be resolved
下了spring-framework-3.0.0.RC2 发现在org.springframework.web-3.0.0.RC2.jar
有,于是将其导入工程中。又发现
org.springframework.web.servlet.view.ContentNegotiatingViewResolver中
233行OrderComparator.sort(this.viewResolvers);提示The method
sort(List<ViewResolver>) is undefined for the type OrderComparator;252行
String filename = WebUtils.extractFullFilenameFromUrlPath(requestUri);提示
The method extractFullFilenameFromUrlPath(String) is undefined for the type
WebUtils 似乎整个spring.jar 都要被替换掉了。
并且public class BaseRestSpringController<Entity,PK> extends
BaseSpringController 也需手动将plugins\springmvc\src\javacommon\javacommon
\base中的BaseSpringController 拷到 src\javacommon\javacommon\base 中。
Original issue reported on code.google.com by [email protected]
on 17 Nov 2009 at 6:37
如果是生成的表采用increment的方式,我相信单表的增、删、��
�、修都不会有问题;但是项目
中主键的方式好多都是要采用业务字段或业务字段的组合来��
�为主键,虽然这个不好,但是我所
参与的项目中经常是这样的情况。
如果是用业务字段的单个字段作为主键,这个时候用户需要��
�已实现生成主键的类,这个我做了
修改并增加了一个简单的模板生成类,用户只需要针对生成��
�的单主键生成类实现其中的主键生
成方法即可,这个时候也就是不管是单主键或者是多主键都��
�有主键生成方法,只是内容不一样
而已,见附件,经测试可以实现增、删、查、改功能。
如果是用业务字段的多个字段作为主键,原程序没有考虑到��
�主键需要采用对象,而不是其字段
类型了,这个就会产生我前面提到的生成了两个主键的问题��
�这个我也对生成模板作了修改,不
过因为时间关系,还没有测试,只是生成的代码中不会出现��
�前面上传的附件中的问题了。
我的数据库是SQLSERVER2008,因为当前项目中采用的是这个,我�
��用了这个作为测试,我不知
道测试的结果是否与数据库有关,我把我发现的问题以及修��
�记录了一下。
另外,我前面曾经使用过普元的EOS,我觉得RAPID-FRAMEWORK可以��
�其加入:
1、查询显示页面实现字段可配置性。
2、增、查、改页面每一行显示字段的数目,需要显示一些样�
��内容也可以实现配置性。
以下是两个附件:
1、单业务字段主键的模板文件:${className}Id.java@!compositeId
2、针对业务字段主键的修改记录
{本来是想自己做的,但我认为你肯定比我做得更好哦@_@}
最后建意如果在时间允许,还麻烦你在generator补充一些必要��
�Doc,毕竟我们要做DOC.
希望Rapid-Framework越来越好哦
Original issue reported on code.google.com by [email protected]
on 1 Oct 2009 at 3:12
Attachments:
使用框架结构 ext+struts2+hibernate
修改过 主键生成方式 为assigned 非数据库自动生成。
运行过程中使用URL
http://localhost:8080/ProjectName/pages/TbModel/extlist.do
报错:
org.springframework.orm.hibernate3.HibernateQueryException: TbModel is not
mapped [select t from TbModel t where 1=1]; nested exception is
org.hibernate.hql.ast.QuerySyntaxException: TbModel is not mapped [select
t from TbModel t where 1=1]
Original issue reported on code.google.com by [email protected]
on 29 Jan 2010 at 9:30
最新版本的rapid-framework
validation在没有sitemesh的时候,是正常的。
我用sitemesh对网页布局后,required字段为空也能正常提交。且�
��入数据库为空字
符串(非null),也就是model未进行验证,允许了提交。
且firebug下提示,rapid-validation.js出错。
请看看。谢谢
Original issue reported on code.google.com by [email protected]
on 25 Jan 2010 at 1:03
junit 4.4导致的异常。
Original issue reported on code.google.com by [email protected]
on 25 Jan 2010 at 10:07
下载了最新的rapid-framework-v3.0.0.11.zip包,解压缩后
按照quick_start_guild 来搭建项目。将生成的java_src
,java_test包加入到源代码
路径中后,如:public class UserInfoController extends
BaseSpringController,当我按住ctrl点击BaseSpringController时,提示the
resource is not on the build path of a java project。不知是什么原因?
Original issue reported on code.google.com by [email protected]
on 13 Nov 2009 at 7:40
java.lang.TypeNotPresentException: Type [unknown] not present
at
sun.reflect.annotation.TypeNotPresentExceptionProxy.generateException
(Unknown Source)
at sun.reflect.annotation.AnnotationInvocationHandler.invoke
(Unknown Source)
at $Proxy7.value(Unknown Source)
at org.junit.internal.requests.ClassRequest.getRunnerClass
(ClassRequest.java:49)
at org.junit.internal.requests.ClassRequest.getRunner
(ClassRequest.java:28)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.<init>
(JUnit4TestReference.java:26)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestClassReference.<init>
(JUnit4TestClassReference.java:24)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.createTest
(JUnit4TestLoader.java:40)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestLoader.loadTests
(JUnit4TestLoader.java:30)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:445)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests
(RemoteTestRunner.java:673)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run
(RemoteTestRunner.java:386)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main
(RemoteTestRunner.java:196)
Caused by: java.lang.NoClassDefFoundError:
org/junit/runners/BlockJUnit4ClassRunner
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at
sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(Unknown
Source)
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature
(Unknown Source)
at sun.reflect.generics.tree.ClassTypeSignature.accept(Unknown
Source)
at sun.reflect.annotation.AnnotationParser.parseSig(Unknown
Source)
at sun.reflect.annotation.AnnotationParser.parseClassValue
(Unknown Source)
at sun.reflect.annotation.AnnotationParser.parseMemberValue
(Unknown Source)
at sun.reflect.annotation.AnnotationParser.parseAnnotation
(Unknown Source)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2
(Unknown Source)
at sun.reflect.annotation.AnnotationParser.parseAnnotations
(Unknown Source)
at java.lang.Class.initAnnotationsIfNecessary(Unknown Source)
at java.lang.Class.initAnnotationsIfNecessary(Unknown Source)
at java.lang.Class.initAnnotationsIfNecessary(Unknown Source)
at java.lang.Class.initAnnotationsIfNecessary(Unknown Source)
at java.lang.Class.getAnnotation(Unknown Source)
at org.junit.internal.requests.ClassRequest.getRunnerClass
(ClassRequest.java:45)
... 9 more
Original issue reported on code.google.com by [email protected]
on 10 Mar 2010 at 7:00
应该是must not be null.
Original issue reported on code.google.com by [email protected]
on 13 Jan 2010 at 5:45
应该是${className}Action.java模板有错误.可惜我看不懂.
What steps will reproduce the problem?
1.使用ibatis插件
2.使用struts2插件
3.数据库使用mysql 5.1.35
4.使用联合主键
5.Struts2Action类生成的有错误,联合主键使用的是相同的名字
6.表的创建语句
DROP TABLE IF EXISTS HardTokenPropertyData;
CREATE TABLE HardTokenPropertyData (
id varchar(250) binary NOT NULL DEFAULT '',
property varchar(250) binary NOT NULL DEFAULT '',
value varchar(250) binary NULL DEFAULT NULL,
PRIMARY KEY (id(150), property(150))
);
DROP TABLE IF EXISTS KeyRecoveryData;
CREATE TABLE KeyRecoveryData (
certSN varchar(250) binary NOT NULL DEFAULT '',
issuerDN varchar(250) binary NOT NULL DEFAULT '',
username varchar(250) binary NULL DEFAULT NULL,
markedAsRecoverable tinyint(4) NOT NULL DEFAULT '0',
keyData text NULL DEFAULT NULL,
PRIMARY KEY (certSN(150), issuerDN(150))
);
7.此外测试用例生成的时候,byte[]型数据生成是编译错误的.
Original issue reported on code.google.com by [email protected]
on 25 Nov 2009 at 3:11
试用了rapid-framework2.5版本,步骤很简单,安装说明文档,很��
�就成功了。
但还是发现了两个小问题,记录如下:
1.工作空间默认是utf-8的,在里面建工程的时候,在安装插件步骤会出错,无法继续,
大概是无法识别字体的问题,没有细究。但如果工作空间默��
�是GBK编码的,就正常。这个问题,
我在不同的个人电脑试了好几次,确定存在。
2.使用300多张表的ERP系统的数据库进行测试时,到了代码生成过程中会出错,不能继
续。试了几个不同的数据库,都有这个问题。也就是说,复��
�的数据库设计,可能还存在问题。
是不是这样,没有深入细究,有待研究。
多谢。希望rapid越做越好。
Original issue reported on code.google.com by [email protected]
on 19 Nov 2009 at 3:22
应该是must not be null.
Original issue reported on code.google.com by [email protected]
on 13 Jan 2010 at 5:45
使用最新的rapid-framework3.5.0.1生成一对多关联表的文件时报错.
1.一对多数据库脚本:
-- 数据字典表
CREATE TABLE `DICT` (
`ID` varchar(32) NOT NULL,
`NAME` varchar(255) default NULL,
`CODE` varchar(255) default NULL,
`START_LOAD` int(1) default 1,
`MEMO` varchar(255) default NULL,
`VERSION` int(4) default 0,
`DELETED` int(1) default 0,
PRIMARY KEY (`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-- 数据字典明细表
CREATE TABLE `DICT_ITEM` (
`ID` varchar(32) NOT NULL,
`DICT_ID` varchar(32) default NULL,
`KEY` varchar(255) default NULL,
`VALUE` varchar(255) default NULL,
`DEFAULTED` int(1) default 0,
`SHOW_ORDER` int(2) default 1,
`VERSION` int(4) default 0,
`DELETED` int(1) default 0,
PRIMARY KEY (`ID`),
KEY `FK_DICT_ITEM_DICT_ID` (`DICT_ID`),
CONSTRAINT `FK_DICT_ITEM_ID` FOREIGN KEY (`DICT_ID`) REFERENCES `DICT`(`ID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
2. 生成所有表对应的文件时报的错误如下:
Load [generator.properties] from classpath
[Property] outRoot=d:/webapp-generator-output
[Property] basepackage_dir=com/ctf/flexdemo
[Property] jdbc.schema=
[Property] jdbc.password=36273792
[Property] namespace=pages
[Property] hibernate_id_generator=uuid
[Property] basepackage=com.ctf.flexdemo
[Property] version=1.0.0.20100324
[Property]
jdbc.url=jdbc:mysql://localhost:3306/demo?useUnicode=true&characterEncoding=UTF-
8
[Property] jdbc.catalog=
[Property] jdbc.driver=com.mysql.jdbc.Driver
[Property] jdbc.username=root
[Delete Dir] d:/webapp-generator-output
***************************************************************
* BEGIN generate Database Table:DICT to ClassName:Dict
***************************************************************
-------------------load template from templateRootDir =
'E:\workspace_utf8\rapid-framework-3.5.0.1\template'
[generate] template:insert_demo\i18n.properties to insert_demo\i18n.properties
[generate] template:insert_demo\spring-service.xml to
insert_demo\spring-service.xml
[generate]
template:java_src\${basepackage_dir}\service\${className}Manager.java to
java_src\com/ctf/flexdemo\service\DictManager.java
[not-generate] test expression '@compositeId' is
false,template:java_src\${basepackage_dir}\model\${className}Id.java@compositeId
[generate] template:java_src\${basepackage_dir}\model\${className}.java to
java_src\com/ctf/flexdemo\model\Dict.java
[generate] template:java_src\${basepackage_dir}\dao\${className}Dao.java
to java_src\com/ctf/flexdemo\dao\DictDao.java
[generate]
template:java_src\${basepackage_dir}\flex\service\${className}FlexService.java
to java_src\com/ctf/flexdemo\flex\service\DictFlexService.java
[generate]
template:java_src\${basepackage_dir}\controller\${className}Controller.java
to java_src\com/ctf/flexdemo\controller\DictController.java
[generate]
template:java_test\${basepackage_dir}\dao\${className}DaoTest.java to
java_test\com/ctf/flexdemo\dao\DictDaoTest.java
[generate]
template:java_test\${basepackage_dir}\service\${className}ManagerTest.java
to java_test\com/ctf/flexdemo\service\DictManagerTest.java
[generate] template:java_test\${className}_testdata.xml to
java_test\Dict_testdata.xml
[generate] template:web\pages\${classNameLowerCase}\show.jsp to
web\pages\dict\show.jsp
[generate] template:web\pages\${classNameLowerCase}\new.jsp to
web\pages\dict\new.jsp
[generate] template:web\pages\${classNameLowerCase}\form_include.jsp to
web\pages\dict\form_include.jsp
[generate] template:web\pages\${classNameLowerCase}\edit.jsp to
web\pages\dict\edit.jsp
[generate] template:web\pages\${classNameLowerCase}\index.jsp to
web\pages\dict\index.jsp
[skip] endsWith '.include' template:custom.include
[skip] endsWith '.include' template:java_copyright.include
[skip] endsWith '.include' template:java_imports.include
[skip] endsWith '.include' template:macro.include
[generate]
template:other\java_hibernate_xml\${basepackage_dir}\model\${className}.java to
other\java_hibernate_xml\com/ctf/flexdemo\model\Dict.java
[generate]
template:other\java_hibernate_xml\${basepackage_dir}\model\${className}.hbm.xml
to other\java_hibernate_xml\com/ctf/flexdemo\model\Dict.hbm.xml
[not-generate] test expression '@compositeId' is
false,template:other\java_hibernate_xml\${basepackage_dir}\model\${className}Id.
java@compositeId
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\${className}Delegate.as
to flex_src\com/ctf/flexdemo\dict\DictDelegate.as
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\${className}Register.as
to flex_src\com/ctf/flexdemo\dict\DictRegister.as
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\event\List${className}Eve
nt.as
to flex_src\com/ctf/flexdemo\dict\event\ListDictEvent.as
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\event\Delete${className}E
vent.as
to flex_src\com/ctf/flexdemo\dict\event\DeleteDictEvent.as
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\event\Get${className}Even
t.as
to flex_src\com/ctf/flexdemo\dict\event\GetDictEvent.as
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\event\Save${className}Eve
nt.as
to flex_src\com/ctf/flexdemo\dict\event\SaveDictEvent.as
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\command\Save${className}C
ommand.as
to flex_src\com/ctf/flexdemo\dict\command\SaveDictCommand.as
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\command\Get${className}Co
mmand.as
to flex_src\com/ctf/flexdemo\dict\command\GetDictCommand.as
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\command\List${className}C
ommand.as
to flex_src\com/ctf/flexdemo\dict\command\ListDictCommand.as
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\command\Delete${className
}Command.as
to flex_src\com/ctf/flexdemo\dict\command\DeleteDictCommand.as
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\view\${className}View.mxm
l
to flex_src\com/ctf/flexdemo\dict\view\DictView.mxml
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\view\${className}Detail.m
xml
to flex_src\com/ctf/flexdemo\dict\view\DictDetail.mxml
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\view\${className}Grid.mxm
l
to flex_src\com/ctf/flexdemo\dict\view\DictGrid.mxml
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\view\${className}QueryPan
el.mxml
to flex_src\com/ctf/flexdemo\dict\view\DictQueryPanel.mxml
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\view\${className}DetailWi
ndow.mxml
to flex_src\com/ctf/flexdemo\dict\view\DictDetailWindow.mxml
[generate]
template:flex_src\${basepackage_dir}\${underscoreName}\${className}ModelLocator.
as
to flex_src\com/ctf/flexdemo\dict\DictModelLocator.as
[generate] template:flex_src\${basepackage_dir}\vo\${className}.as to
flex_src\com/ctf/flexdemo\vo\Dict.as
[generate] template:flex_src\${basepackage_dir}\model\${className}.as to
flex_src\com/ctf/flexdemo\model\Dict.as
[generate] template:flex_src\locale\en_US\${className}.properties to
flex_src\locale\en_US\Dict.properties
[generate] template:flex_src\locale\zh_CN\${className}.properties to
flex_src\locale\zh_CN\Dict.properties
[generate] template:flex_src\${className}Index.mxml to flex_src\DictIndex.mxml
[generate] template:flex_src\readme.txt to flex_src\readme.txt
[skip] endsWith '.include' template:actionscript_imports.include
[skip] endsWith '.include' template:actionscript_copyright.include
[skip] endsWith '.include' template:flex_macro.include
***************************************************************
* BEGIN generate Database Table:DICT_ITEM to ClassName:DictItem
***************************************************************
-------------------load template from templateRootDir =
'E:\workspace_utf8\rapid-framework-3.5.0.1\template'
[insert] generate content into:insert_demo\i18n.properties
[insert] generate content into:insert_demo\spring-service.xml
[generate]
template:java_src\${basepackage_dir}\service\${className}Manager.java to
java_src\com/ctf/flexdemo\service\DictItemManager.java
[not-generate] test expression '@compositeId' is
false,template:java_src\${basepackage_dir}\model\${className}Id.java@compositeId
[generate] template:java_src\${basepackage_dir}\model\${className}.java to
java_src\com/ctf/flexdemo\model\DictItem.java
java.lang.RuntimeException: not found table with give name:dict
at
cn.org.rapid_framework.generator.provider.db.DbTableFactory.getTable(DbTableFact
ory.java:88)
at
cn.org.rapid_framework.generator.provider.db.model.ForeignKey.getSqlTable(Foreig
nKey.java:160)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav
a:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:840)
at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:276)
at freemarker.ext.beans.BeanModel.get(BeanModel.java:183)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Assignment.accept(Assignment.java:90)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
at freemarker.core.Environment.visit(Environment.java:417)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Macro$Context.runMacro(Macro.java:172)
at freemarker.core.Environment.visit(Environment.java:603)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Environment.process(Environment.java:190)
at freemarker.template.Template.process(Template.java:237)
at
cn.org.rapid_framework.generator.Generator.saveNewOutputFileContent(Generator.ja
va:224)
at
cn.org.rapid_framework.generator.Generator.generateNewFileOrInsertIntoFile(Gener
ator.java:157)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:116)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:77)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByTable(GeneratorFacade
.java:44)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByAllTable(GeneratorFac
ade.java:37)
at cn.org.rapid_framework.generator.GeneratorMain.main(GeneratorMain.java:21)
2010-03-24 08:15:45,796 ERROR [freemarker.runtime] - <Error on line 187,
column 9 in java_src\${basepackage_dir}\model\${className}.java
foreignKey.sqlTable is undefined.
It cannot be assigned to fkSqlTable>
Error on line 187, column 9 in
java_src\${basepackage_dir}\model\${className}.java
foreignKey.sqlTable is undefined.
It cannot be assigned to fkSqlTable
The problematic instruction:
----------
==> assignment: fkSqlTable=foreignKey.sqlTable [on line 187, column 9 in
java_src\${basepackage_dir}\model\${className}.java]
in user-directive generateJavaManyToOne [on line 39, column 9 in
java_src\${basepackage_dir}\model\${className}.java]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Error on line 187, column 9 in
java_src\${basepackage_dir}\model\${className}.java
foreignKey.sqlTable is undefined.
It cannot be assigned to fkSqlTable
at freemarker.core.Assignment.accept(Assignment.java:111)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
at freemarker.core.Environment.visit(Environment.java:417)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Macro$Context.runMacro(Macro.java:172)
at freemarker.core.Environment.visit(Environment.java:603)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Environment.process(Environment.java:190)
at freemarker.template.Template.process(Template.java:237)
at
cn.org.rapid_framework.generator.Generator.saveNewOutputFileContent(Generator.ja
va:224)
at
cn.org.rapid_framework.generator.Generator.generateNewFileOrInsertIntoFile(Gener
ator.java:157)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:116)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:77)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByTable(GeneratorFacade
.java:44)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByAllTable(GeneratorFac
ade.java:37)
at cn.org.rapid_framework.generator.GeneratorMain.main(GeneratorMain.java:21)
Exception in thread "main" java.lang.RuntimeException: generate 'Database
Table:DICT_ITEM to ClassName:DictItem' oucur error,template
is:java_src\${basepackage_dir}\model\${className}.java
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:118)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:77)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByTable(GeneratorFacade
.java:44)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByAllTable(GeneratorFac
ade.java:37)
at cn.org.rapid_framework.generator.GeneratorMain.main(GeneratorMain.java:21)
Caused by: freemarker.core.InvalidReferenceException: Error on line 187,
column 9 in java_src\${basepackage_dir}\model\${className}.java
foreignKey.sqlTable is undefined.
It cannot be assigned to fkSqlTable
at freemarker.core.Assignment.accept(Assignment.java:111)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:167)
at freemarker.core.Environment.visit(Environment.java:417)
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:102)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Macro$Context.runMacro(Macro.java:172)
at freemarker.core.Environment.visit(Environment.java:603)
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:106)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:210)
at freemarker.core.Environment.process(Environment.java:190)
at freemarker.template.Template.process(Template.java:237)
at
cn.org.rapid_framework.generator.Generator.saveNewOutputFileContent(Generator.ja
va:224)
at
cn.org.rapid_framework.generator.Generator.generateNewFileOrInsertIntoFile(Gener
ator.java:157)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:116)
... 4 more
Original issue reported on code.google.com by [email protected]
on 24 Mar 2010 at 9:09
Attachments:
你好,首先感谢你花时间写了这样一个快速框架,并共享出��
�,我相信它可以让我从繁杂的CODE
中得到一点解脱。不过我在使用的过程中有一点小问题,这��
�请教一下。
我配置好了generator.properties,运行也成功,默认文件生成目录
我没有改变,我到目
录"d:/webapp-generator-output"中查看生成的结果,发现没有生成Hibe
rnate的实体,我
想应该是我没有配置plugin的原因,我转到plugins下,选择执行b
uild.xml中的
install_struts2+hibernate 或者是直接执行该build.xml文件,报:
BUILD FAILED
java.lang.NoSuchMethodError:
org.apache.tools.ant.types.FileSet.getDirectoryScanner()
Lorg/apache/tools/ant/DirectoryScanner;
我想尝试反编译JAR包"anttask_for_plugin.jar",不过因为加了混淆��
�原因,反编译不过
来,
另外我有个建议,下一个版本中可否加入通过用户指定表名��
�前缀进行代码生成,因为一个相对
大点的项目,动则就是上百个表,一个个加挺麻烦的,如果��
�全部生成,系统表也没有用处,如
果可以通过指定表的前缀进行生成,那将更方便。
我使用的版本为当前最新版:rapid-framework-v2.5.0.40,操作系统�
��WINXP
Original issue reported on code.google.com by [email protected]
on 24 Sep 2009 at 1:51
当column property是aaa_bbb时,排序时会生成sort by
aaa.bbb这样的形式,但是当数
据库里的列名本来就是aaa_bbb时怎么办?
Original issue reported on code.google.com by [email protected]
on 30 Sep 2009 at 8:07
安装了springjdbc和spring_rest,生成代码时提示。
Expression table.idColumn is undefined on line 6, column 23 in
java_src\${basepackage_dir}\controller\${className}Controller.java.
The problematic instruction:
----------
==> assignment: pkJavaType=table.idColumn.javaType [on line 6, column 1 in
java_src\${basepackage_dir}\controller\${className}Controller.java]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression table.idColumn is
undefined on line 6, column 23 in
java_src\${basepackage_dir}\controller\${className}Controller.java.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Assignment.accept(Assignment.java:90)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:237)
at
cn.org.rapid_framework.generator.Generator.saveNewOutputFileContent(Generator.ja
va:220)
at
cn.org.rapid_framework.generator.Generator.generateNewFileOrInsertIntoFile(Gener
ator.java:157)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:116)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:77)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByTable(GeneratorFacade
.java:44)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByAllTable(GeneratorFac
ade.java:37)
at cn.org.rapid_framework.generator.GeneratorMain.main(GeneratorMain.java:21)
Exception in thread "main" java.lang.RuntimeException: generate 'Database
Table:t_system_user_role to ClassName:TsystemUserRole' oucur error,template
is:java_src\${basepackage_dir}\controller\${className}Controller.java
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:118)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:77)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByTable(GeneratorFacade
.java:44)
at
cn.org.rapid_framework.generator.GeneratorFacade.generateByAllTable(GeneratorFac
ade.java:37)
at cn.org.rapid_framework.generator.GeneratorMain.main(GeneratorMain.java:21)
Caused by: freemarker.core.InvalidReferenceException: Expression
table.idColumn is undefined on line 6, column 23 in
java_src\${basepackage_dir}\controller\${className}Controller.java.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
at
freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:134)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
at freemarker.core.Assignment.accept(Assignment.java:90)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:237)
at
cn.org.rapid_framework.generator.Generator.saveNewOutputFileContent(Generator.ja
va:220)
at
cn.org.rapid_framework.generator.Generator.generateNewFileOrInsertIntoFile(Gener
ator.java:157)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider(Generator.jav
a:116)
... 4 more
而且代码中很多地方都发生了错误。
Original issue reported on code.google.com by [email protected]
on 18 Nov 2009 at 10:10
能把你的pomer项目的文档开放吗?
Original issue reported on code.google.com by [email protected]
on 9 Apr 2010 at 1:04
默认的action的模板文件中,包含一个变量private String[]
items;如果数据库的表
的名字本身即是items的话,生成的java代码就会出错,所以建��
�items名称应该改得
更加特殊一些。
Original issue reported on code.google.com by [email protected]
on 23 Oct 2009 at 8:43
这段代码存在问题
{{{
this.el.descendants().each(function(el){
if(Element.readAttribute(el, 'alt'))
el.alt = "";
});
}}}
netfork的解决办法
{{{
直接注释了。。。
水平所限,没理解什么意思,
查了下JE使用你的框架的代码,他们也没使用这段处理,所以
,就注释掉了,
来报告一下,如果有必要,请给个正确的改法。
大侠的JS水平超高,我只有学着用的份,还没法分析研究。
}}}
Original issue reported on code.google.com by [email protected]
on 20 Aug 2009 at 2:51
新建问题前你可以搜索是否已经存在该问题或是查看google
-group
按什么步骤可以重现错误?
1.在oracle10g 中 回收站如果存在表,生成出错
2.
3.
期待的结果是什么?
使用什么版本?
你使用的相关插件组合是什么?
你还可以在此后面增加其它任何详细信息.
Original issue reported on code.google.com by [email protected]
on 24 Mar 2010 at 9:04
发现个BUG~
验证的先后顺序 class="required validate-alphanum"
先输入空值 再输入符号就能正常显示
先输入符号 再输入空值两个错误提示同时存在
http://badqiu.javaeye.com/blog/289306 这个帖子的评论
谢谢
Original issue reported on code.google.com by [email protected]
on 9 Apr 2009 at 9:07
rapid版本:rapid-framework-v3.0.1.0
使用的相关插件组合是:
dao-hibernate
springmvc
按如下步骤重现错误:
1.按照视频和doc的提示,完成后,部署到tomcat
2.访问http://localhost:8080/test 就报这个错误了
我仔细的查了一下,的确没有sessionFactory这个bean.
这个是啥问题呀?关注ing
Original issue reported on code.google.com by [email protected]
on 15 Apr 2010 at 9:14
新建问题前你可以搜索是否已经存在该问题或是查看google
-group
rapid版本:3.5.0.1
public class SqlMapClientFactoryBean extends
org.springframework.orm.ibatis.SqlMapClientFactoryBean{
结果因为没有用过ibatis,不知道支持ibatis的spring的包是哪个��
�
另外,/web/login.jsp中,有这么一句:
<%@ include file="/commons/messages.jsp" %>
结果在/web/commons/下面每一偶message.jsp这个文件。
Original issue reported on code.google.com by [email protected]
on 5 May 2010 at 5:45
执行带有in条件的分页查询语句,查询count语句时正确找到参�
��。而查询具体数据时
找不到参数。
java代码:
Map<String, Object> filters = new HashMap<String, Object>();
List<Long> adminList = new ArrayList<Long>();
Collection<GrantedAuthority> grants = SecurityContextHolder.getContext
().getAuthentication().getAuthorities();
for(GrantedAuthority grant : grants) {
GrantedAuthorityInfo g = (GrantedAuthorityInfo)grant;
adminList.add(g.getAuthorityId());
}
filters.put("parentIds", adminList);
int totalCount = roleDao.pageQueryRoleCount(filters);
Page<Role> page = new Page<Role>(pageRequest, totalCount);
filters = PageUtils.createFilters(page, pageRequest);
filters.put("parentIds", adminList);
List<Role> list = roleDao.pageQueryRole(filters);
page.setResult(list);
return page;
xml:
<select id="pageQueryRoleCount" resultType="int"
parameterType="hashmap">
select count(*) from mf_role where parentId in
<foreach item="item" index="index" collection="parentIds"
open="(" separator="," close=")">
#{item}
</foreach>
</select>
<select id="pageQueryRole" resultType="Role"
parameterType="hashmap">
select * from mf_role where parentId in
<foreach item="item" index="index" collection="parentIds"
open="(" separator="," close=")">
#{item}
</foreach>
</select>
stack :
2010-03-23 15:34:29,921 DEBUG [java.sql.Connection] - <ooo Connection
Opened>
2010-03-23 15:34:29,984 DEBUG [java.sql.PreparedStatement] - <==>
Executing: select count(*) from mf_role where parentId in ( ? ) >
2010-03-23 15:34:29,984 DEBUG [java.sql.PreparedStatement] - <==>
Parameters: -1(Long)>
2010-03-23 15:34:29,984 DEBUG [java.sql.Connection] - <xxx Connection
Closed>
2010-03-23 15:34:30,046 DEBUG [java.sql.Connection] - <ooo Connection
Opened>
2010-03-23 15:34:30,046 DEBUG [java.sql.Connection] - <xxx Connection
Closed>
2010-3-23 15:34:30 org.apache.catalina.core.ApplicationDispatcher invoke
严重: Servlet.service() for servlet starframe threw exception
org.apache.ibatis.type.TypeException: JDBC requires that the JdbcType must
be specified for all nullable parameters.
at org.apache.ibatis.type.BaseTypeHandler.setParameter
(BaseTypeHandler.java:14)
at
org.apache.ibatis.executor.parameter.DefaultParameterHandler.setParameters
(DefaultParameterHandler.java:73)
at
org.apache.ibatis.executor.statement.PreparedStatementHandler.parameterize
(PreparedStatementHandler.java:61)
at
org.apache.ibatis.executor.statement.RoutingStatementHandler.parameterize
(RoutingStatementHandler.java:43)
at org.apache.ibatis.executor.SimpleExecutor.prepareStatement
(SimpleExecutor.java:56)
at org.apache.ibatis.executor.SimpleExecutor.doQuery
(SimpleExecutor.java:40)
at org.apache.ibatis.executor.BaseExecutor.query
(BaseExecutor.java:90)
at org.apache.ibatis.executor.CachingExecutor.query
(CachingExecutor.java:68)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
Original issue reported on code.google.com by [email protected]
on 23 Mar 2010 at 7:39
我用代码生成工具生成ibatis代码时,其代码和配置文件中表的�
��段都生成了2次
rapid版本:3.5.0.1
使用的相关插件组合是:代码生成工具生成ibatis代码
按如下步骤重现错误:
1.
2.
期待的结果是:
java的error stack trace:
其它详细错误信息:
Original issue reported on code.google.com by [email protected]
on 29 Mar 2010 at 4:18
Attachments:
如,增加一个方法 generateByTable('sql_table_name','class_name');
Original issue reported on code.google.com by [email protected]
on 24 Sep 2009 at 2:57
生成的UserInfoController 中的list方法
public ModelAndView list(HttpServletRequest request,HttpServletResponse
response,UserInfo userInfo) 中有一行为
result.setViewName("/userinfo/list");
应改为:result.setViewName("/pages/UserInfo/list");
Original issue reported on code.google.com by [email protected]
on 17 Nov 2009 at 6:41
因为上网的不方便,文档一个个下载又破坏完整性,如果可��
�的话,能够下载打包的文档到本地
阅读就更好了
Original issue reported on code.google.com by [email protected]
on 24 Sep 2009 at 1:55
将subpackage修改为module,并且只应用于jsp页面生成.
Original issue reported on code.google.com by [email protected]
on 30 Jul 2009 at 2:57
我比较喜欢使用IBatis来做dao层,但是在使用的初期,程序就��
�不能运行,后发现在Template
中的ibatis sqlMap模板文件中 insert update
delete等,都没有独立名字,所以导致不能
正确读取sqlMap文件!解决方法,修改这个sqlmap模板文件!
另有时候我们并不会使用web的view层,因为只是做个模块加载�
��用,建议添加改功能。
Original issue reported on code.google.com by [email protected]
on 22 Jan 2010 at 1:30
What steps will reproduce the problem?
1.从数据库创建用户users表
2.运行GeneratorMain
3.自动生成相关页面,pages/Users文件夹,头字母大写
What is the expected output? What do you see instead?
访问 /users 提示无法找到页面,改为pages/users访问正常
version v3.0.0.11
operating system windows xp
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 6 Dec 2009 at 11:36
经多次测试 发现如下Bug
对于一对多(oneToMany ) ,rapid-framework 自动生成代码的都
采用java.util.Set.
但是hibernate 3.X 集合类型批注(@oneTomany..) 使用Set会导致Bug
在延迟加载时候,只能导致读取子表(一对多的 "多"
所对于的表)一条记录,这可能是
hibernate Bug!
建议:将模板的java.util.Set 修正为 java.util.List or
java.util.Collection!
Original issue reported on code.google.com by [email protected]
on 23 Nov 2009 at 5:12
我用hibernate+springMVC生成了代码,分页控件用的是extremeTable,
使用后发现extremeTable生成的行<ec:row>并没有双击事件
然后查看了网上的文章,给<ec:row>增加了双击事件
但是有个问题,就是<ec:row>中,并不能取到我所要遍历的数据
,
我主要是想双击查看数据
希望能帮忙解决下
Original issue reported on code.google.com by [email protected]
on 6 Mar 2010 at 3:19
使用springmvc-rest和ibatis 3,使用数据库为SQL Server
2000,生成代码,访问数据库列表
时(list)只能显示第一页内容,其它页面列表为空,内容不能显示
出来. Configuration.xml中
已将方言改为: SQLServerDialect, jdbc驱动使用: jtds-1.1.jar
Original issue reported on code.google.com by [email protected]
on 21 Dec 2009 at 4:26
OffsetLimitResultSetExtractor
中的extractData函数,有一条rs.absolute(offset);
语句,分页查询时执行的这会出现“只进 ResultSet
不支持请求的操作。”错误。
原因已经查到了,因为ResultSet要支持滚动操作需要有个设置��
�直接用jdbc的时候在创建
Statement是可以指定
ResultSet.TYPE_SCROLL_SENSITIVE,使其可滚动。
但是在spring里,我不知道哪里可以设置这个属性。
我用的是spring-dao+struts2
Original issue reported on code.google.com by [email protected]
on 9 Feb 2010 at 1:13
2009-11-25 17:34:11,109 WARN [cn.org.rapid_framework.generator.Generator] -
<WARNING: The JDBC driver didn't report any primary key columns in
TXN_LOG>
***************************************************************
* BEGIN generate Database Table:TXN_LOG to ClassName:TxnLog
***************************************************************
-------------------load template from templateRootDir = 'E:\j2ee\myeclipse6
\eclipse\workspace\wcode\template'
[skip] endsWith '.include' template:custom.include
[generate] template:insert_demo\i18n.properties to
insert_demo\i18n.properties
[generate] template:insert_demo\spring-service.xml to
insert_demo\spring-service.xml
[skip] endsWith '.include' template:java_copyright.include
[skip] endsWith '.include' template:java_imports.include
[generate] template:java_src\${basepackage_dir}\action\${className}
Action.java to java_src\com/company/project\action\TxnLogAction.java
[generate] template:java_src\${basepackage_dir}\dao\${className}
Dao.java to java_src\com/company/project\dao\TxnLogDao.java
2009-11-25 17:34:11,437 ERROR [freemarker.runtime] - <>
Expression table.idColumn is undefined on line 12, column 67 in
java_src\${basepackage_dir}\dao\${className}Dao.java.
The problematic instruction:
----------
==> ${table.idColumn.javaType} [on line 12, column 65 in
java_src\${basepackage_dir}\dao\${className}Dao.java]
----------
Java backtrace for programmers:
----------
freemarker.core.InvalidReferenceException: Expression table.idColumn is
undefined on line 12, column 67 in java_src\${basepackage_dir}
\dao\${className}Dao.java.
at freemarker.core.TemplateObject.assertNonNull
(TemplateObject.java:124)
at freemarker.core.TemplateObject.invalidTypeException
(TemplateObject.java:134)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
at freemarker.core.Expression.getAsTemplateModel
(Expression.java:89)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:237)
at
cn.org.rapid_framework.generator.Generator.saveNewOutputFileContent
(Generator.java:220)
at
cn.org.rapid_framework.generator.Generator.generateNewFileOrInsertIntoFile
(Generator.java:157)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider
(Generator.java:116)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider
(Generator.java:77)
at cn.org.rapid_framework.generator.GeneratorFacade.generateByTable
(GeneratorFacade.java:44)
at cn.org.rapid_framework.generator.GeneratorMain.main
(GeneratorMain.java:19)
Exception in thread "main" java.lang.RuntimeException: generate 'Database
Table:TXN_LOG to ClassName:TxnLog' oucur error,template
is:java_src\${basepackage_dir}\dao\${className}Dao.java
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider
(Generator.java:118)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider
(Generator.java:77)
at cn.org.rapid_framework.generator.GeneratorFacade.generateByTable
(GeneratorFacade.java:44)
at cn.org.rapid_framework.generator.GeneratorMain.main
(GeneratorMain.java:19)
Caused by: freemarker.core.InvalidReferenceException: Expression
table.idColumn is undefined on line 12, column 67 in
java_src\${basepackage_dir}\dao\${className}Dao.java.
at freemarker.core.TemplateObject.assertNonNull
(TemplateObject.java:124)
at freemarker.core.TemplateObject.invalidTypeException
(TemplateObject.java:134)
at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)
at freemarker.core.Expression.getAsTemplateModel
(Expression.java:89)
at freemarker.core.Expression.getStringValue(Expression.java:93)
at freemarker.core.DollarVariable.accept(DollarVariable.java:76)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.MixedContent.accept(MixedContent.java:92)
at freemarker.core.Environment.visit(Environment.java:208)
at freemarker.core.Environment.process(Environment.java:188)
at freemarker.template.Template.process(Template.java:237)
at
cn.org.rapid_framework.generator.Generator.saveNewOutputFileContent
(Generator.java:220)
at
cn.org.rapid_framework.generator.Generator.generateNewFileOrInsertIntoFile
(Generator.java:157)
at
cn.org.rapid_framework.generator.Generator.generateByModelProvider
(Generator.java:116)
... 3 more
Original issue reported on code.google.com by [email protected]
on 25 Nov 2009 at 9:44
建议将tempate中的模板文件统统转移动plugins中去
Original issue reported on code.google.com by [email protected]
on 29 Jul 2009 at 3:41
1.update中:源程序如下: <#if !column.pk>
${column.sqlName} = <@mapperEl
column.columnNameFirstLower+',jdbcType='+column.jdbcSqlTypeName/> <#if
column_has_next>,</#if>
</#if>
若 主键在最后面的话,会多出一个逗号。
2.select by unique column 中:源程序如下:
<select id="getBy${column.columnName}" resultMap="${className}Result"
parameterType="${column.javaType}">
select <include refid="${classNameFirstLower}Columns"/>
<![CDATA[
from ${table.sqlName} where ${column.sqlName} =
#${column.columnNameLower}#
]]>
</select>
是不是应将#${column.columnNameLower}# --》<@mapperEl
column.columnNameLower/>
因为:例如: from T_P_USER_LOGIN_SESSION where USERID = #userid#
而不是:from T_P_USER_LOGIN_SESSION where USERID = #{userid}
Original issue reported on code.google.com by [email protected]
on 26 Feb 2010 at 7:58
解决办法: 改为拦截 *.do
Original issue reported on code.google.com by [email protected]
on 30 Jul 2009 at 7:03
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.