假设以下课程
@PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = "true")
public class TclRequest2 {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private long id;
@Persistent(column = "userid")
@Column(defaultValue = "1", jdbcType = "INTEGER", length = 11, allowsNull = "false", extensions = {})
private Member member;
//Getters and setters
}
“成员”字段的列应转换为整数列。但是该列必须创建一个外键约束来指向“Member”的主键字段,其类型为
INT(11) UNSIGNED
我想出如何制作第一部分如图所示,但我不知道如何指定该字段应为UNSIGNED
!
谢谢。