1 Star 3 Fork 2

sagframe / sagacity-quickvo

2021-03-06 20:48
zhongxuchen

1、优化postgresql int8 默认类型匹配

小优化,可选择性升级,quickvo本身可以通过额外设置类型匹配来修正

Last committed message: update README.md.
2021-02-26 15:21
zhongxuchen

1、适配sqltoy4.18.3 发版优化级联操作,简化了vo生成OneToMany中的参数
2、剔除了OneToMany产生的mapping方法,交由sqltoy框架自动完成

Last committed message: update README.md.
2021-02-03 16:27
zhongxuchen

1、task里面严格区分entity、vo两个生成任务
2、entity、vo里面增加to-dir可以将代码生成到指定路径下面

<task active="true" author="zhongxuchen" include="^SYS_\w+" datasource="strict" swagger-model="v3">
   <entity package="${project.package}.system.domain" substr="Sys" name="#{subName}"/>
   <vo package="${project.package}.system.dto" substr="Sys" name="#{subName}VO" to- 
        dir="../../../provider-api/src/main/java" has-abstract="true" 
        extends="org.sagacity.core.model.Request"/>
</task>

3、type-mapping 针对类型匹配增加了table-field属性,便于json类型精准匹配到具体表的字段上

<type-mapping>		
  <!-- 常规数组类型quickvo里面已经内嵌匹配
  <sql-type native-types="_int8" jdbc-type="ARRAY" java-type="Long[]" />-->
  <!-- 泛型注意xml转义符号,table-field指定具体表和字段; jdbc-type 可以直接填数字,这里java- 
   type="List<StaffInfoVO>" -->
  <sql-type table-field="sqltoy_jsontype_showcae.staff_set" native-types="json" jdbc-type="1021"
     java-type="List&lt;StaffInfoVO&gt;" import-types="com.sqltoy.quickstart.vo.StaffInfoVO"/>
</type-mapping>
Last committed message: 更新
2021-01-22 10:32
zhongxuchen

1、swagger支持v3版本,swagger-model="v2|v3",原本的true默认是v2版本

<tasks dist="../../src/main/java" encoding="UTF-8">
<task active="true" author="zhongxuchen" include="^SYS_\w+" datasource="strict" swagger-model="v3">
	<entity package="${project.package}.system.entity" substr="Sys" name="#{subName}"/>
	<vo package="${project.package}.system.dto" substr="Sys" name="#{subName}VO" 
                                         extends="com.sagframe.framework.model.Request"/>
</task>
</tasks>
Last committed message: Update README.md
2021-01-22 10:31
4.17.9
Update README.md zip tar.gz
2021-01-04 10:32
zhongxuchen

1、是否在抽象类中生成SelectFieldImpl内部类,默认值改为false

<property name="generate.selectFields.class" value="true" />
Last committed message: 更新
2020-12-25 09:27
zhongxuchen

1、通过task上设置fields-rid-prefix对字段的前缀进行统一剔除,需要配套sqltoy4.17.7版本

<tasks dist="../../src/main/java" encoding="UTF-8">
    <task fields-rid-prefix="F_" active="true" author="zhongxuchen" include="^SQLTOY_\w+" 
                  datasource="quickstart" swagger-model="false">
      <!-- extends 属性可以指定抽象类继承的父类 -->
      <vo package="${project.package}.quickstart.vo" substr="Sqltoy" name="#{subName}VO" />
    </task>
</tasks>
Last committed message: 升级支持字段剔除统一前缀
2020-12-02 18:08
zhongxuchen

1、支持extends指定继承父类,entity和vo都支持该属性

<task active="true" author="zhongxuchen" include="^SYS_\w+" datasource="strict" swagger-model="true">
     <entity package="${project.package}.system.entity" substr="Sys" name="#{subName}"/>
     <vo package="${project.package}.system.dto" substr="Sys" name="#{subName}VO" extends="com.sagframe.model.Request"/>
</task>

2、在结构上对不同数据库类型匹配进行了支持,目前主要分离了postgresql

Last committed message: update README.md.
2020-11-20 17:11
4.16.5
update README.md. zip tar.gz
2020-11-20 17:12
zhongxuchen

1、支持级联orderBy

<cascade>
   <table name="SQLTOY_DICT_DETAIL" orderBy="showIndex desc" />
  <!-- <table name="SQLTOY_DICT_DETAIL" update-cascade="delete" load="STATUS=1" orderBy=""/> -->
</cascade>
Last committed message: update README.md.
2020-10-09 17:56
4.16.0
update README.md. zip tar.gz
2020-10-09 17:56
zhongxuchen

参见sagframe/sqltoy-strict 演示项目

<tasks dist="../../src/main/java" encoding="UTF-8">
	<task active="true" author="zhongxuchen" include="^SAG_\w+" datasource="strict" swagger-model="true">
		<entity package="${project.package}.sagacity.entity" substr="Sag" name="#{subName}"/>
		<vo package="${project.package}.sagacity.vo" substr="Sag" name="#{subName}VO" />
	</task>
	<task active="true" author="zhongxuchen" include="^SYS_\w+" datasource="strict" swagger-model="true">
		<entity package="${project.package}.system.entity" substr="Sys" name="#{subName}"/>
		<vo package="${project.package}.system.vo" substr="Sys" name="#{subName}VO" />
	</task>
</tasks>
Last committed message: update README.md.
2020-09-08 21:27
zhongxuchen

1、增加产生SelectFields内部类的开关

<!-- 是否在抽象类中生成SelectFieldImpl内部类,默认值为true,需要sqltoy4.15.3版本以上	-->
<property name="generate.selectFields.class" value="true" />
Last committed message: 更新
Java
1
https://gitee.com/sagacity/sagacity-quickvo.git
git@gitee.com:sagacity/sagacity-quickvo.git
sagacity
sagacity-quickvo
sagacity-quickvo

Search