- javaModelGenerator
- javaClientGenerator
- sqlMapGenerator
- dal层,目录7个,分别为src中包含dal,model,model.ext,dao,dao.ext, resource中为 mapper,mapper.ext dao生成的代码包含如下: 基本方法 以表Coupon为例
int countByExample(CouponExample example);
int deleteByExample(CouponExample example);
int deleteByPrimaryKey(Integer id);
int insert(Coupon record);
int insertSelective(Coupon record);
List<Coupon> selectByExample(CouponExample example);
Coupon selectByPrimaryKey(Integer id);
int updateByExampleSelective(@Param("record") Coupon record, @Param("example") CouponExample example);
int updateByExample(@Param("record") Coupon record, @Param("example") CouponExample example);
int updateByPrimaryKeySelective(Coupon record);
int updateByPrimaryKey(Coupon record);
- 额外生成的方法:
int logicalDeleteByPrimaryKey(
@Param("id")Integer id,
@Param("updateUser")String updateUser,
@Param("updateUserName")String updateUserName,
@Param("updateTime")Date updateTime);
Coupon selectByPrimaryKeyForUpdate(Integer id);
List<Coupon> queryCoupon(CouponQueryReq couponQuery);
int changeStatus(@Param("id")Integer id, byte status, byte newStatus);
- 根据索引生成的get方法:
List<Coupon> selectByCouponNo(@Param("couponNo") String couponNo);
constant,enum,dto,service,req,resp
biz,cache,convertor,support,util
intercepter,validate,service.impl,util,junit.test
config,controller,util,vo,convertor,util,intercepter,domain