提交 6b561093 编写于 作者: IBZGIT01's avatar IBZGIT01

ibizdev提交

上级 97770937
!!!!模版产生代码错误:----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #if MajorPSDER.getDERType() == "DER11" [in template "CODETEMPL_zh_CN" at line 45, column 5]
----
\ No newline at end of file
package cn.ibizhub.demo.demo.domain;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.sql.Timestamp;
/**
* 实体[MANYET] 数据对象
*/
@Entity(name = "t_manyet")
@Data
public class MANYET{
@Id
@GeneratedValue(generator = "uuid")
@GenericGenerator(name = "uuid", strategy = "uuid")
private String manyetid;
@Column(name = "manyetname"
,nullable = true
,columnDefinition="VARCHAR (200) DEFAULT null Comment '关系从实体名称'"
)
private String manyetname;
@Column(name = "createdate"
,nullable = false
,columnDefinition="DATETIME DEFAULT null Comment '建立时间'"
)
private Timestamp createdate;
@Column(name = "createman"
,nullable = false
,columnDefinition="VARCHAR (60) DEFAULT null Comment '建立人'"
)
private String createman;
@Column(name = "updateman"
,nullable = false
,columnDefinition="VARCHAR (60) DEFAULT null Comment '更新人'"
)
private String updateman;
@Column(name = "updatedate"
,nullable = false
,columnDefinition="DATETIME DEFAULT null Comment '更新时间'"
)
private Timestamp updatedate;
@ManyToOne
@JoinColumn(name="oneetid",foreignKey = @ForeignKey(name = "DER1N_MANYET_ONEET_ONEETID"))
private ONEET oneetid;
@Override
public String toString() {
return "manyetid=" +manyetid+","+"manyetname=" +manyetname+","+"createdate=" +createdate+","+"createman=" +createman+","+"updateman=" +updateman+","+"updatedate=" +updatedate ;
}
}
!!!!模版产生代码错误:----
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: #if MajorPSDER.getDERType() == "DER11" [in template "CODETEMPL_zh_CN" at line 45, column 5]
----
\ No newline at end of file
package cn.ibizhub.demo.demo.domain;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;
import java.sql.Timestamp;
/**
* 实体[SLAVEONEET] 数据对象
*/
@Entity(name = "t_slaveoneet")
@Data
public class SLAVEONEET{
@Column(name = "createdate"
,nullable = false
,columnDefinition="DATETIME DEFAULT null Comment '建立时间'"
)
private Timestamp createdate;
@Column(name = "slaveoneetname"
,nullable = true
,columnDefinition="VARCHAR (200) DEFAULT null Comment '一对一从实体名称'"
)
private String slaveoneetname;
@Column(name = "updateman"
,nullable = false
,columnDefinition="VARCHAR (60) DEFAULT null Comment '更新人'"
)
private String updateman;
@Column(name = "updatedate"
,nullable = false
,columnDefinition="DATETIME DEFAULT null Comment '更新时间'"
)
private Timestamp updatedate;
@Column(name = "createman"
,nullable = false
,columnDefinition="VARCHAR (60) DEFAULT null Comment '建立人'"
)
private String createman;
@Id
@GeneratedValue(generator = "uuid")
@GenericGenerator(name = "uuid", strategy = "uuid")
@OneToOne(fetch = FetchType.LAZY)
@JoinColumn(name="slaveoneetid",foreignKey = @ForeignKey(name = "DER11_SLAVEONEET_MASTERONEET"))
private MASTERONEET slaveoneetid;
@Override
public String toString() {
return "createdate=" +createdate+","+"slaveoneetname=" +slaveoneetname+","+"updateman=" +updateman+","+"updatedate=" +updatedate+","+"createman=" +createman ;
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册