admin 管理员组文章数量: 887021
2024年1月16日发(作者:awk sed grep)
nlumName = humpConlumName; } public void setConlumName(Object conlumName) { Name = conlumName; } public Object getConlumTypeNameOriginal() { return conlumTypeName; } public Object getConlumTypeName() { switch (ng()) { case "INT": return "int"; case "VARCHAR": return "String"; default: return ""; } } public void setConlumTypeName(Object conlumTypeName) { TypeName = conlumTypeName; } public ColumnPOJO() { } public ColumnPOJO(Object conlumName, Object humpConlumName, Object conlumTypeName) { Name = conlumName; nlumName = humpConlumName; TypeName = conlumTypeName; } public ColumnPOJO(Object conlumName, Object conlumTypeName) { Name = conlumName; TypeName = conlumTypeName; } @Override public String toString() { return "ColumnPOJO{" + "conlumName=" + conlumName + ", humpConlumName=" + humpConlumName + ", conlumTypeName=" + conlumTypeName + '}'; }}测试拿到的数据
<#if classPath??>package ${classPath};#if>${imports}@Entity@Table(name = "${className}")public class ${fileName} extends BaseEntity{<#--public class ${fileName} {--><#list newMember as m> @Column(name = "${Name}") private ${TypeName} ${nlumName ? uncap_first};#list><#list newMember as m> public ${TypeName} get${nlumName}() { return ${nlumName ? uncap_first}; } public void set${nlumName}(${TypeName} ${nlumName ? uncap_first}) { this.${nlumName ? uncap_first} = ${nlumName ? uncap_first}; }#list> public ${fileName}() { } public ${fileName}(<#list newMember as m>${TypeName} ${nlumName ? uncap_first}<#if m_has_next>,#if>#list> ) { <#list newMember as m> this.${nlumName ? uncap_first} = ${nlumName ? uncap_first}; #list> }}bean_
<#if classPath??>package ${classPath};#if>${imports}public class ${fileName} extends BaseEntity{<#--public class ${fileName} {--><#list newMember as m> private ${TypeName} ${nlumName ? uncap_first};#list><#list newMember as m> public ${TypeName} get${nlumName}() { return ${nlumName ? uncap_first}; } public void set${nlumName}(${TypeName} ${nlumName ? uncap_first}) { this.${nlumName ? uncap_first} = ${nlumName ? uncap_first}; }#list> public ${fileName}() { } public ${fileName}(<#list newMember as m>${TypeName} ${nlumName ? uncap_first}<#if m_has_next>,#if>#list> ) { <#list newMember as m> this.${nlumName ? uncap_first} = ${nlumName ? uncap_first}; #list> }}<#if classPath??>package ${classPath};#if>${imports}public interface ${fileName} extends CommonRepository<${T}, Integer>{}<#if classPath??>package ${classPath};#if>${imports}public interface ${fileName} extends SimpCommonService<${T}, Integer>{}service_
版权声明:本文标题:Java自动生成bean、dao、service、impl、controller(JPA初版) 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.freenas.com.cn/jishu/1705366307h482822.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论