WorldStarWB / rapid-framework

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

ibatis struts2 在使用联合主键的时候,generator生成代码错误 #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
应该是${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 yindj0...@gmail.com on 25 Nov 2009 at 3:11

GoogleCodeExporter commented 8 years ago
联合主键现在是存在这个问题,主要近段没有时间修改,可��
�考issue 15先修正

Original comment by bad...@gmail.com on 25 Nov 2009 at 6:35