Skip to content

Commit

Permalink
增加@GeneratedValue注解的支持
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbi committed Sep 26, 2020
1 parent a463778 commit 6e7171f
Show file tree
Hide file tree
Showing 21 changed files with 81 additions and 768 deletions.
3 changes: 0 additions & 3 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,3 @@ insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[Makefile]
indent_style = space
42 changes: 39 additions & 3 deletions mybatis-ext-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
<parent>
<artifactId>mybatis-ext-parent</artifactId>
<groupId>tech.wetech.mybatis</groupId>
<version>1.6.4-SNAPSHOT</version>
<version>1.6.4</version>
<relativePath>../mybatis-ext-parent</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>

<artifactId>mybatis-ext-core</artifactId>
<version>1.6.4-SNAPSHOT</version>
<version>1.6.4</version>

<properties>
<mybatis.version>3.5.5</mybatis.version>
Expand Down Expand Up @@ -62,4 +63,39 @@
<!-- test end -->
</dependencies>

</project>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.0.0-M5</version>
<configuration>
<argLine>-Dfile.encoding=UTF-8</argLine>
<systemProperties>
<property>
<name>derby.stream.error.file</name>
<value>${project.build.directory}/derby.log</value>
</property>
<property>
<name>derby.system.home</name>
<value>${project.build.directory}</value>
</property>
</systemProperties>
</configuration>
</plugin>
</plugins>
<testResources>
<testResource>
<directory>src/test/resources</directory>
</testResource>
<testResource>
<directory>src/test/java</directory>
<includes>
<include>**/*.xml</include>
<include>**/*.sql</include>
<include>**/*.properties</include>
</includes>
</testResource>
</testResources>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

public abstract class BaseDataTest {

public static final String DERBY_PROPERTIES = "derby.properties";
public static final String SCHEMA_SQL = "schema.sql";
public static final String DATA_SQL = "data.sql";
public static final String DERBY_PROPERTIES = "tech/wetech/mybatis/databases/goods/goods-derby.properties";
public static final String SCHEMA_SQL = "tech/wetech/mybatis/databases/goods/goods-derby-schema.sql";
public static final String DATA_SQL = "tech/wetech/mybatis/databases/goods/goods-derby-dataload.sql";

public static void runScript(DataSource ds, String resource) throws IOException, SQLException {
try (Connection connection = ds.getConnection()) {
Expand Down
Loading

0 comments on commit 6e7171f

Please sign in to comment.