Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Jun 12, 2015 · 1 comment

Comments

@GoogleCodeExporter
Copy link

应该是${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
Copy link
Author

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

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

  • Changed state: Duplicate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant