/** * This method was generated by MyBatis Generator. This method corresponds to the database table * STAR * * @mbggenerated */ public String updateByPrimaryKeySelective(Star record) { BEGIN(); UPDATE("STAR"); if (record.getFirstname() != null) { SET("FIRSTNAME = #{firstname,jdbcType=VARCHAR}"); } if (record.getLastname() != null) { SET("LASTNAME = #{lastname,jdbcType=VARCHAR}"); } WHERE("ID = #{id,jdbcType=INTEGER}"); return SQL(); }
/** * This method was generated by MyBatis Generator. This method corresponds to the database table * STAR * * @mbggenerated */ public String insertSelective(Star record) { BEGIN(); INSERT_INTO("STAR"); if (record.getId() != null) { VALUES("ID", "#{id,jdbcType=INTEGER}"); } if (record.getFirstname() != null) { VALUES("FIRSTNAME", "#{firstname,jdbcType=VARCHAR}"); } if (record.getLastname() != null) { VALUES("LASTNAME", "#{lastname,jdbcType=VARCHAR}"); } return SQL(); }