Commit fa6e34ad authored by frank.xa.zhang's avatar frank.xa.zhang

add mybatis entities -- frank

parent e8291be2
jdbc.driverClass=com.mysql.jdbc.Driver
jdbc.connectionURL=jdbc:mysql://10.157.107.89:3306/entity_mgt?useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&allowMultiQueries=true&useSSL=false
jdbc.userId=user_entity
jdbc.password=userEntity@123
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE generatorConfiguration
PUBLIC "-//mybatis.org//DTD MyBatis Generator Configuration 1.0//EN"
"http://mybatis.org/dtd/mybatis-generator-config_1_0.dtd">
<generatorConfiguration>
<!-- See: http://www.mybatis.org/generator/configreference/commentGenerator.html -->
<properties resource="entityGenerator.properties"/>
<!-- <classPathEntry location="../hsqldb/hsqldb-2.3.5.jar" /> -->
<context id="contextId" targetRuntime="MyBatis3">
<!-- 考虑需要兼容DB2与ORCAL数据库, 大部份字段不需要加双引号,autoDelimitKeywords设置为false -->
<property name="autoDelimitKeywords" value="true"/>
<property name="javaFileEncoding" value="UTF-8"/>
<!-- beginningDelimiter和endingDelimiter:指明数据库的用于标记数据库对象名的符号,比如ORACLE就是双引号,MYSQL默认是`反引号; -->
<property name="beginningDelimiter" value="`"/>
<property name="endingDelimiter" value="`"/>
<plugin type="org.mybatis.generator.plugins.MapperAnnotationPlugin"/>
<!-- <plugin type="org.mybatis.generator.plugins.RowBoundsPlugin"/>-->
<plugin type="org.mybatis.generator.plugins.ToStringPlugin"/>
<plugin type="org.mybatis.generator.plugins.SerializablePlugin"/>
<commentGenerator>
<property name="suppressDate" value="true"/>
<property name="addRemarkComments" value="true"/>
</commentGenerator>
<jdbcConnection driverClass="${jdbc.driverClass}" connectionURL="${jdbc.connectionURL}" userId="${jdbc.userId}"
password="${jdbc.password}">
</jdbcConnection>
<javaTypeResolver>
<property name="forceBigDecimals" value="false"/>
</javaTypeResolver>
<javaModelGenerator targetPackage="pwc.taxtech.atms.organization.entity" targetProject="../../src/main/java">
<property name="trimStrings" value="true"/>
<property name="rootClass" value="pwc.taxtech.atms.entity.BaseEntity"/>
</javaModelGenerator>
<sqlMapGenerator targetPackage="pwc.taxtech.atms.organization.dao" targetProject="../../src/main/resources">
</sqlMapGenerator>
<javaClientGenerator type="XMLMAPPER" targetPackage="pwc.taxtech.atms.organization.dao" targetProject="../../src/main/java">
<property name="rootInterface" value="pwc.taxtech.atms.MyMapper"/>
</javaClientGenerator>
<table tableName="organization" domainObjectName="Organization">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<table tableName="organization_attachment" domainObjectName="OrganizationAttachment">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<table tableName="organization_shareholder" domainObjectName="OrganizationShareholder">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
<table tableName="organization_director" domainObjectName="OrganizationDirector">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
</context>
</generatorConfiguration>
\ No newline at end of file
rem see http://www.mybatis.org/generator/running/runningFromCmdLine.html
cd /d %~dp0
call java -classpath .;./* org.mybatis.generator.api.ShellRunner -configfile entityGeneratorConfig.xml -overwrite
echo @@@@@@@@@@@ DONE @@@@@@@@@@@
pause
package pwc.taxtech.atms.organization.dao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pwc.taxtech.atms.MyMapper;
import pwc.taxtech.atms.organization.entity.OrganizationAttachment;
import pwc.taxtech.atms.organization.entity.OrganizationAttachmentExample;
import java.util.List;
@Mapper
public interface OrganizationAttachmentMapper extends MyMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
long countByExample(OrganizationAttachmentExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
int deleteByExample(OrganizationAttachmentExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
int insert(OrganizationAttachment record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
int insertSelective(OrganizationAttachment record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
List<OrganizationAttachment> selectByExample(OrganizationAttachmentExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
OrganizationAttachment selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") OrganizationAttachment record, @Param("example") OrganizationAttachmentExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
int updateByExample(@Param("record") OrganizationAttachment record, @Param("example") OrganizationAttachmentExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(OrganizationAttachment record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
int updateByPrimaryKey(OrganizationAttachment record);
}
\ No newline at end of file
package pwc.taxtech.atms.organization.dao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pwc.taxtech.atms.MyMapper;
import pwc.taxtech.atms.organization.entity.OrganizationDirector;
import pwc.taxtech.atms.organization.entity.OrganizationDirectorExample;
import java.util.List;
@Mapper
public interface OrganizationDirectorMapper extends MyMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_director
*
* @mbg.generated
*/
long countByExample(OrganizationDirectorExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_director
*
* @mbg.generated
*/
int deleteByExample(OrganizationDirectorExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_director
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_director
*
* @mbg.generated
*/
int insert(OrganizationDirector record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_director
*
* @mbg.generated
*/
int insertSelective(OrganizationDirector record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_director
*
* @mbg.generated
*/
List<OrganizationDirector> selectByExample(OrganizationDirectorExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_director
*
* @mbg.generated
*/
OrganizationDirector selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_director
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") OrganizationDirector record, @Param("example") OrganizationDirectorExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_director
*
* @mbg.generated
*/
int updateByExample(@Param("record") OrganizationDirector record, @Param("example") OrganizationDirectorExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_director
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(OrganizationDirector record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_director
*
* @mbg.generated
*/
int updateByPrimaryKey(OrganizationDirector record);
}
\ No newline at end of file
package pwc.taxtech.atms.organization.dao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pwc.taxtech.atms.MyMapper;
import pwc.taxtech.atms.organization.entity.Organization;
import pwc.taxtech.atms.organization.entity.OrganizationExample;
import java.util.List;
@Mapper
public interface OrganizationMapper extends MyMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
long countByExample(OrganizationExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
int deleteByExample(OrganizationExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
int insert(Organization record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
int insertSelective(Organization record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
List<Organization> selectByExample(OrganizationExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
Organization selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") Organization record, @Param("example") OrganizationExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
int updateByExample(@Param("record") Organization record, @Param("example") OrganizationExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(Organization record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
int updateByPrimaryKey(Organization record);
}
\ No newline at end of file
package pwc.taxtech.atms.organization.dao;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import pwc.taxtech.atms.MyMapper;
import pwc.taxtech.atms.organization.entity.OrganizationShareholder;
import pwc.taxtech.atms.organization.entity.OrganizationShareholderExample;
import java.util.List;
@Mapper
public interface OrganizationShareholderMapper extends MyMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_shareholder
*
* @mbg.generated
*/
long countByExample(OrganizationShareholderExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_shareholder
*
* @mbg.generated
*/
int deleteByExample(OrganizationShareholderExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_shareholder
*
* @mbg.generated
*/
int deleteByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_shareholder
*
* @mbg.generated
*/
int insert(OrganizationShareholder record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_shareholder
*
* @mbg.generated
*/
int insertSelective(OrganizationShareholder record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_shareholder
*
* @mbg.generated
*/
List<OrganizationShareholder> selectByExample(OrganizationShareholderExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_shareholder
*
* @mbg.generated
*/
OrganizationShareholder selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_shareholder
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") OrganizationShareholder record, @Param("example") OrganizationShareholderExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_shareholder
*
* @mbg.generated
*/
int updateByExample(@Param("record") OrganizationShareholder record, @Param("example") OrganizationShareholderExample example);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_shareholder
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(OrganizationShareholder record);
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_shareholder
*
* @mbg.generated
*/
int updateByPrimaryKey(OrganizationShareholder record);
}
\ No newline at end of file
package pwc.taxtech.atms.organization.entity;
import pwc.taxtech.atms.entity.BaseEntity;
import java.io.Serializable;
import java.util.Date;
/**
*
* This class was generated by MyBatis Generator.
* This class corresponds to the database table organization_attachment
*
* @mbg.generated do_not_delete_during_merge
*/
public class OrganizationAttachment extends BaseEntity implements Serializable {
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_attachment.id
*
* @mbg.generated
*/
private Long id;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_attachment.entity_id
*
* @mbg.generated
*/
private Long entityId;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_attachment.document_name
*
* @mbg.generated
*/
private String documentName;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_attachment.document_path
*
* @mbg.generated
*/
private String documentPath;
/**
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_attachment.document_extension
*
* @mbg.generated
*/
private String documentExtension;
/**
* Database Column Remarks:
* 创建时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_attachment.create_time
*
* @mbg.generated
*/
private Date createTime;
/**
* Database Column Remarks:
* 更新时间
*
* This field was generated by MyBatis Generator.
* This field corresponds to the database column organization_attachment.update_time
*
* @mbg.generated
*/
private Date updateTime;
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table organization_attachment
*
* @mbg.generated
*/
private static final long serialVersionUID = 1L;
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_attachment.id
*
* @return the value of organization_attachment.id
*
* @mbg.generated
*/
public Long getId() {
return id;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_attachment.id
*
* @param id the value for organization_attachment.id
*
* @mbg.generated
*/
public void setId(Long id) {
this.id = id;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_attachment.entity_id
*
* @return the value of organization_attachment.entity_id
*
* @mbg.generated
*/
public Long getEntityId() {
return entityId;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_attachment.entity_id
*
* @param entityId the value for organization_attachment.entity_id
*
* @mbg.generated
*/
public void setEntityId(Long entityId) {
this.entityId = entityId;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_attachment.document_name
*
* @return the value of organization_attachment.document_name
*
* @mbg.generated
*/
public String getDocumentName() {
return documentName;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_attachment.document_name
*
* @param documentName the value for organization_attachment.document_name
*
* @mbg.generated
*/
public void setDocumentName(String documentName) {
this.documentName = documentName == null ? null : documentName.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_attachment.document_path
*
* @return the value of organization_attachment.document_path
*
* @mbg.generated
*/
public String getDocumentPath() {
return documentPath;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_attachment.document_path
*
* @param documentPath the value for organization_attachment.document_path
*
* @mbg.generated
*/
public void setDocumentPath(String documentPath) {
this.documentPath = documentPath == null ? null : documentPath.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_attachment.document_extension
*
* @return the value of organization_attachment.document_extension
*
* @mbg.generated
*/
public String getDocumentExtension() {
return documentExtension;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_attachment.document_extension
*
* @param documentExtension the value for organization_attachment.document_extension
*
* @mbg.generated
*/
public void setDocumentExtension(String documentExtension) {
this.documentExtension = documentExtension == null ? null : documentExtension.trim();
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_attachment.create_time
*
* @return the value of organization_attachment.create_time
*
* @mbg.generated
*/
public Date getCreateTime() {
return createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_attachment.create_time
*
* @param createTime the value for organization_attachment.create_time
*
* @mbg.generated
*/
public void setCreateTime(Date createTime) {
this.createTime = createTime;
}
/**
* This method was generated by MyBatis Generator.
* This method returns the value of the database column organization_attachment.update_time
*
* @return the value of organization_attachment.update_time
*
* @mbg.generated
*/
public Date getUpdateTime() {
return updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method sets the value of the database column organization_attachment.update_time
*
* @param updateTime the value for organization_attachment.update_time
*
* @mbg.generated
*/
public void setUpdateTime(Date updateTime) {
this.updateTime = updateTime;
}
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization_attachment
*
* @mbg.generated
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append(getClass().getSimpleName());
sb.append(" [");
sb.append("Hash = ").append(hashCode());
sb.append(", id=").append(id);
sb.append(", entityId=").append(entityId);
sb.append(", documentName=").append(documentName);
sb.append(", documentPath=").append(documentPath);
sb.append(", documentExtension=").append(documentExtension);
sb.append(", createTime=").append(createTime);
sb.append(", updateTime=").append(updateTime);
sb.append("]");
return sb.toString();
}
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment