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

add mybatis entities -- frank

parent fa6e34ad
......@@ -41,7 +41,7 @@
<property name="rootInterface" value="pwc.taxtech.atms.MyMapper"/>
</javaClientGenerator>
<table tableName="organization" domainObjectName="Organization">
<table tableName="organization" domainObjectName="OrganizationHK">
<property name="useActualColumnNames" value="false"/>
<property name="ignoreQualifiersAtRuntime" value="true"/>
</table>
......
......@@ -3,20 +3,20 @@ 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 pwc.taxtech.atms.organization.entity.OrganizationHK;
import pwc.taxtech.atms.organization.entity.OrganizationHKExample;
import java.util.List;
@Mapper
public interface OrganizationMapper extends MyMapper {
public interface OrganizationHKMapper extends MyMapper {
/**
* This method was generated by MyBatis Generator.
* This method corresponds to the database table organization
*
* @mbg.generated
*/
long countByExample(OrganizationExample example);
long countByExample(OrganizationHKExample example);
/**
* This method was generated by MyBatis Generator.
......@@ -24,7 +24,7 @@ public interface OrganizationMapper extends MyMapper {
*
* @mbg.generated
*/
int deleteByExample(OrganizationExample example);
int deleteByExample(OrganizationHKExample example);
/**
* This method was generated by MyBatis Generator.
......@@ -40,7 +40,7 @@ public interface OrganizationMapper extends MyMapper {
*
* @mbg.generated
*/
int insert(Organization record);
int insert(OrganizationHK record);
/**
* This method was generated by MyBatis Generator.
......@@ -48,7 +48,7 @@ public interface OrganizationMapper extends MyMapper {
*
* @mbg.generated
*/
int insertSelective(Organization record);
int insertSelective(OrganizationHK record);
/**
* This method was generated by MyBatis Generator.
......@@ -56,7 +56,7 @@ public interface OrganizationMapper extends MyMapper {
*
* @mbg.generated
*/
List<Organization> selectByExample(OrganizationExample example);
List<OrganizationHK> selectByExample(OrganizationHKExample example);
/**
* This method was generated by MyBatis Generator.
......@@ -64,7 +64,7 @@ public interface OrganizationMapper extends MyMapper {
*
* @mbg.generated
*/
Organization selectByPrimaryKey(Long id);
OrganizationHK selectByPrimaryKey(Long id);
/**
* This method was generated by MyBatis Generator.
......@@ -72,7 +72,7 @@ public interface OrganizationMapper extends MyMapper {
*
* @mbg.generated
*/
int updateByExampleSelective(@Param("record") Organization record, @Param("example") OrganizationExample example);
int updateByExampleSelective(@Param("record") OrganizationHK record, @Param("example") OrganizationHKExample example);
/**
* This method was generated by MyBatis Generator.
......@@ -80,7 +80,7 @@ public interface OrganizationMapper extends MyMapper {
*
* @mbg.generated
*/
int updateByExample(@Param("record") Organization record, @Param("example") OrganizationExample example);
int updateByExample(@Param("record") OrganizationHK record, @Param("example") OrganizationHKExample example);
/**
* This method was generated by MyBatis Generator.
......@@ -88,7 +88,7 @@ public interface OrganizationMapper extends MyMapper {
*
* @mbg.generated
*/
int updateByPrimaryKeySelective(Organization record);
int updateByPrimaryKeySelective(OrganizationHK record);
/**
* This method was generated by MyBatis Generator.
......@@ -96,5 +96,5 @@ public interface OrganizationMapper extends MyMapper {
*
* @mbg.generated
*/
int updateByPrimaryKey(Organization record);
int updateByPrimaryKey(OrganizationHK record);
}
\ No newline at end of file
......@@ -12,7 +12,7 @@ import java.util.Date;
*
* @mbg.generated do_not_delete_during_merge
*/
public class Organization extends BaseEntity implements Serializable {
public class OrganizationHK extends BaseEntity implements Serializable {
/**
*
* This field was generated by MyBatis Generator.
......
......@@ -4,7 +4,7 @@ import java.util.ArrayList;
import java.util.Date;
import java.util.List;
public class OrganizationExample {
public class OrganizationHKExample {
/**
* This field was generated by MyBatis Generator.
* This field corresponds to the database table organization
......@@ -35,7 +35,7 @@ public class OrganizationExample {
*
* @mbg.generated
*/
public OrganizationExample() {
public OrganizationHKExample() {
oredCriteria = new ArrayList<Criteria>();
}
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="pwc.taxtech.atms.organization.dao.OrganizationMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.organization.entity.Organization">
<mapper namespace="pwc.taxtech.atms.organization.dao.OrganizationHKMapper">
<resultMap id="BaseResultMap" type="pwc.taxtech.atms.organization.entity.OrganizationHK">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
......@@ -114,7 +114,7 @@
jurisdiction_of_formation, financial_year_end, annual_audit_requirement, registered_agent,
ownership_form, resident_secretary, create_time, update_time
</sql>
<select id="selectByExample" parameterType="pwc.taxtech.atms.organization.entity.OrganizationExample" resultMap="BaseResultMap">
<select id="selectByExample" parameterType="pwc.taxtech.atms.organization.entity.OrganizationHKExample" resultMap="BaseResultMap">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
......@@ -150,7 +150,7 @@
delete from organization
where id = #{id,jdbcType=BIGINT}
</delete>
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.organization.entity.OrganizationExample">
<delete id="deleteByExample" parameterType="pwc.taxtech.atms.organization.entity.OrganizationHKExample">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
......@@ -160,7 +160,7 @@
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="pwc.taxtech.atms.organization.entity.Organization">
<insert id="insert" parameterType="pwc.taxtech.atms.organization.entity.OrganizationHK">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
......@@ -188,7 +188,7 @@
#{registeredAgent,jdbcType=VARCHAR}, #{ownershipForm,jdbcType=INTEGER}, #{residentSecretary,jdbcType=VARCHAR},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP})
</insert>
<insert id="insertSelective" parameterType="pwc.taxtech.atms.organization.entity.Organization">
<insert id="insertSelective" parameterType="pwc.taxtech.atms.organization.entity.OrganizationHK">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
......@@ -373,7 +373,7 @@
</if>
</trim>
</insert>
<select id="countByExample" parameterType="pwc.taxtech.atms.organization.entity.OrganizationExample" resultType="java.lang.Long">
<select id="countByExample" parameterType="pwc.taxtech.atms.organization.entity.OrganizationHKExample" resultType="java.lang.Long">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
......@@ -521,7 +521,7 @@
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.organization.entity.Organization">
<update id="updateByPrimaryKeySelective" parameterType="pwc.taxtech.atms.organization.entity.OrganizationHK">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
......@@ -615,7 +615,7 @@
</set>
where id = #{id,jdbcType=BIGINT}
</update>
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.organization.entity.Organization">
<update id="updateByPrimaryKey" parameterType="pwc.taxtech.atms.organization.entity.OrganizationHK">
<!--
WARNING - @mbg.generated
This element is automatically generated by MyBatis Generator, do not modify.
......
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