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

Oracle 数据库建表 转换实体类格式错误 #152

Open
yynlove opened this issue Jan 29, 2024 · 0 comments
Open

Oracle 数据库建表 转换实体类格式错误 #152

yynlove opened this issue Jan 29, 2024 · 0 comments

Comments

@yynlove
Copy link

yynlove commented Jan 29, 2024

CREATE TABLE TEST_A(
ID NUMBER(20),
CREATE_TIME DATE,
UPDATE_TIME DATE,
CONSTRAINT PK_TEST_A PRIMARY KEY (ID)
);

COMMENT ON TABLE TEST_A IS 'test库';
COMMENT ON COLUMN TEST_A.CREATE_TIME IS '创建时间';
COMMENT ON COLUMN TEST_A.UPDATE_TIME IS '更新时间';

生成如下:
@DaTa
@apimodel("test库")
public class TESTA implements Serializable {

private static final long serialVersionUID = 1L;

@TableId(type = IdType.AUTO)
/**
* ID
*/
@ApiModelProperty("ID")
private String iD;

/**
* CREATE_TIME
*/
@ApiModelProperty("CREATE_TIME")
private String cREATETIME;

/**
* UPDATE_TIME
*/
@ApiModelProperty("UPDATE_TIME")
private String uPDATETIME;

public TESTA() {}

}

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

No branches or pull requests

1 participant