Skip to content

Commit

Permalink
Merge pull request #3 from jinlong-hao/master
Browse files Browse the repository at this point in the history
update to v0.1.3
  • Loading branch information
jinlong-hao authored May 2, 2019
2 parents 031552d + c44a9e6 commit 4ffd0dc
Show file tree
Hide file tree
Showing 11 changed files with 28 additions and 19 deletions.
2 changes: 1 addition & 1 deletion eppdev-jee-basic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>eppdev-jee-pom</artifactId>
<groupId>cn.eppdev.jee</groupId>
<version>0.1.3-SNAPSHOT</version>
<version>0.1.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#########################################
# DataBase Configurations
#########################################
spring.datasource.url=jdbc:mysql://10.0.2.2:3306/eppdev_jee?useUnicode=true&amp;characterEncoding=UTF-8
spring.datasource.url=jdbc:mysql://localhost:3306/eppdev_jee?useUnicode=true&amp;characterEncoding=UTF-8
spring.datasource.username=root
spring.datasource.password=root
spring.datasource.type = com.alibaba.druid.pool.DruidDataSource
Expand Down Expand Up @@ -39,4 +39,4 @@ pagehelper.params=pageSize=_pageSize;pageNum=_pageNum;
# Log Configurations
#########################################
logging.level.root=INFO
logging.level.cn.eppdev.jee=DEBUG
logging.level.cn.eppdev.jee=DEBUG
2 changes: 1 addition & 1 deletion eppdev-jee-cg/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>eppdev-jee-pom</artifactId>
<groupId>cn.eppdev.jee</groupId>
<version>0.1.3-SNAPSHOT</version>
<version>0.1.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

package cn.eppdev.jee.cg.utils;

import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -19,20 +20,20 @@ public class DaoTemplateTest {
public void testBasicDao(){
String ftl = TemplateFileUtils.readTemplateToString("/eppdev-jee/template/dao/basic_dao.ftl");
String result = FreeMarkerUtils.generate(ftl, SampleModelBuilder.getBasicConf());
System.out.println(result);
Assert.assertNotNull(result);
}

@Test
public void testUpperDao(){
String ftl = TemplateFileUtils.readTemplateToString("/eppdev-jee/template/dao/upper_dao.ftl");
String result = FreeMarkerUtils.generate(ftl, SampleModelBuilder.createSampleTable());
System.out.println(result);
Assert.assertNotNull(result);
}

@Test
public void testDao(){
String ftl = TemplateFileUtils.readTemplateToString("/eppdev-jee/template/dao/dao.ftl");
String result = FreeMarkerUtils.generate(ftl, SampleModelBuilder.createSampleTable());
System.out.println(result);
Assert.assertNotNull(result);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

package cn.eppdev.jee.cg.utils;

import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -20,21 +21,21 @@ public class EntityTemplateTest {
public void testBasicEntity(){
String ftl = TemplateFileUtils.readTemplateToString("/eppdev-jee/template/entity/basic_entity.ftl");
String result = FreeMarkerUtils.generate(ftl, SampleModelBuilder.getBasicConf());
System.out.println(result);
Assert.assertNotNull(result);
}

@Test
public void testUpperEntity(){
String ftl = TemplateFileUtils.readTemplateToString("/eppdev-jee/template/entity/upper_entity.ftl");
String result = FreeMarkerUtils.generate(ftl, SampleModelBuilder.createSampleTable());
System.out.println(result);
Assert.assertNotNull(result);
}

@Test
public void testEntity(){
String ftl = TemplateFileUtils.readTemplateToString("/eppdev-jee/template/entity/entity.ftl");
String result = FreeMarkerUtils.generate(ftl, SampleModelBuilder.createSampleTable());
System.out.println(result);
Assert.assertNotNull(result);
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import org.junit.Assert;

/**
* @author jinlong.hao
*/
Expand All @@ -19,13 +21,13 @@ public class MapperTemplateTest {
public void testUpperMapper(){
String ftl = TemplateFileUtils.readTemplateToString("/eppdev-jee/template/mapper/upper_mapper.ftl");
String result = FreeMarkerUtils.generate(ftl, SampleModelBuilder.createSampleTable());
System.out.println(result);
Assert.assertNotNull(result);
}

@Test
public void testEntity(){
String ftl = TemplateFileUtils.readTemplateToString("/eppdev-jee/template/mapper/mapper.ftl");
String result = FreeMarkerUtils.generate(ftl, SampleModelBuilder.createSampleTable());
System.out.println(result);
Assert.assertNotNull(result);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public static EppdevTable createSampleTable(){
column.setDbColumnType("char");
column.setPrimaryKeyFlag(1);
column.setCreateCompareFlag(0);
column.setCreateEqualFlag(1);
column.setCreateLikeFlag(0);
column.setCreateLeftLikeFlag(0);
column.setCreateLikeFlag(0);
Expand All @@ -66,6 +67,7 @@ public static EppdevTable createSampleTable(){
column1.setJavaType("Integer");
column1.setDbColumnType("Integer");
column1.setPrimaryKeyFlag(0);
column1.setCreateEqualFlag(0);
column1.setCreateCompareFlag(1);
column1.setCreateLikeFlag(0);
column1.setCreateLeftLikeFlag(0);
Expand All @@ -82,6 +84,7 @@ public static EppdevTable createSampleTable(){
column2.setPropertyName("name");
column2.setJavaType("String");
column2.setDbColumnType("varchar");
column2.setCreateEqualFlag(0);
column2.setCreateCompareFlag(0);
column2.setCreateLikeFlag(1);
column2.setCreateLeftLikeFlag(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

package cn.eppdev.jee.cg.utils;

import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -19,13 +20,13 @@ public class ServiceTemplateTest {
public void testBasicService(){
String ftl = TemplateFileUtils.readTemplateToString("/eppdev-jee/template/service/basic_service.ftl");
String result = FreeMarkerUtils.generate(ftl, SampleModelBuilder.getBasicConf());
System.out.println(result);
Assert.assertNotNull(result);
}

@Test
public void testService(){
String ftl = TemplateFileUtils.readTemplateToString("/eppdev-jee/template/service/service.ftl");
String result = FreeMarkerUtils.generate(ftl, SampleModelBuilder.createSampleTable());
System.out.println(result);
Assert.assertNotNull(result);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

package cn.eppdev.jee.cg.utils;

import org.junit.Assert;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
Expand All @@ -19,6 +20,6 @@ public class UtilsTemplateTest {
public void testJsonUtils(){
String ftl = TemplateFileUtils.readTemplateToString("/eppdev-jee/template/utils/json_utils.ftl");
String result = FreeMarkerUtils.generate(ftl, SampleModelBuilder.getBasicConf());
System.out.println(result);
Assert.assertNotNull(result);
}
}
2 changes: 1 addition & 1 deletion eppdev-jee-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<artifactId>eppdev-jee-pom</artifactId>
<groupId>cn.eppdev.jee</groupId>
<version>0.1.3-SNAPSHOT</version>
<version>0.1.3</version>
</parent>
<modelVersion>4.0.0</modelVersion>

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>cn.eppdev.jee</groupId>
<artifactId>eppdev-jee-pom</artifactId>
<version>0.1.3-SNAPSHOT</version>
<version>0.1.3</version>
<packaging>pom</packaging>

<name>${project.groupId}:${project.artifactId}</name>
Expand All @@ -15,8 +15,8 @@

<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<name>Anti-996 License 1.0</name>
<url>https://github.com/996icu/996.ICU/blob/master/LICENSE</url>
</license>
</licenses>

Expand Down

0 comments on commit 4ffd0dc

Please sign in to comment.