-
Notifications
You must be signed in to change notification settings - Fork 128
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8743aaf
commit 118f40f
Showing
9 changed files
with
101 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.../src/test/java/org/test/RpcPressTest.java → ...st/java/org/test/client/RpcPressTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.test; | ||
package org.test.client; | ||
|
||
import java.util.Arrays; | ||
import java.util.Random; | ||
|
2 changes: 1 addition & 1 deletion
2
...est/java/org/test/soa/client/RpcTest.java → ...rc/test/java/org/test/client/RpcTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package org.test.soa.client; | ||
package org.test.client; | ||
|
||
import java.io.IOException; | ||
import java.util.ArrayList; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,85 +1,85 @@ | ||
create database sumk; | ||
use sumk; | ||
SET FOREIGN_KEY_CHECKS=0; | ||
|
||
DROP TABLE IF EXISTS `demo_user`; | ||
CREATE TABLE `demo_user` ( | ||
`id` bigint(20) NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`age` int(11) DEFAULT NULL, | ||
`last_update` timestamp NULL DEFAULT NULL, | ||
`enable` tinyint(4) DEFAULT '1' COMMENT '1表示有效记录,0表示记录已被删除', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `generate`; | ||
CREATE TABLE `generate` ( | ||
`id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`name` varchar(255) DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `multikey`; | ||
CREATE TABLE `multikey` ( | ||
`id1` varchar(255) NOT NULL COMMENT '联合主键1', | ||
`id2` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL COMMENT '联合主键2', | ||
`name` varchar(255) DEFAULT NULL, | ||
`age` int(11) DEFAULT NULL, | ||
PRIMARY KEY (`id1`,`id2`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `odd`; | ||
CREATE TABLE `odd` ( | ||
`id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`data` mediumblob, | ||
`update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=2208669043496333243 DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `school_fuzhou`; | ||
CREATE TABLE `school_fuzhou` ( | ||
`id` bigint(20) NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`lastUpdate` timestamp NULL DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `test_table`; | ||
CREATE TABLE `test_table` ( | ||
`id` bigint(20) NOT NULL COMMENT 'Long 类型,第1列', | ||
`userid` varchar(255) NOT NULL COMMENT 'String 类型,联合索引1,第2列', | ||
`enable` bit(1) NOT NULL COMMENT 'boolean 类型,联合索引2,第3列', | ||
`height` smallint(6) DEFAULT NULL COMMENT 'Short 类型,第4列', | ||
`age` tinyint(4) DEFAULT NULL COMMENT 'byte 类型,第5列', | ||
`f` decimal(12,3) DEFAULT NULL COMMENT 'float 类型,第6列', | ||
`d` decimal(20,5) DEFAULT NULL COMMENT 'double 类型,第7列', | ||
`valid` bit(1) DEFAULT b'1' COMMENT '1表示有效记录,0表示记录已被删除', | ||
PRIMARY KEY (`id`), | ||
KEY `testtable_index1` (`userid`,`enable`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用来测试表格自动生成'; | ||
|
||
|
||
DROP TABLE IF EXISTS `timedemo`; | ||
CREATE TABLE `timedemo` ( | ||
`id` bigint(20) NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`lastUpdate` timestamp NULL DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `user_detail`; | ||
CREATE TABLE `user_detail` ( | ||
`id` bigint(20) NOT NULL, | ||
`user_id` bigint(20) NOT NULL, | ||
`addr` varchar(255) DEFAULT NULL, | ||
`height` int(11) DEFAULT NULL, | ||
`valid` char(1) DEFAULT '1' COMMENT '1表示有效记录,0表示记录已被删除', | ||
PRIMARY KEY (`id`), | ||
KEY `user_detail_index1` (`user_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
create database sumk; | ||
use sumk; | ||
SET FOREIGN_KEY_CHECKS=0; | ||
|
||
DROP TABLE IF EXISTS `demo_user`; | ||
CREATE TABLE `demo_user` ( | ||
`id` bigint(20) NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`age` int(11) DEFAULT NULL, | ||
`last_update` timestamp NULL DEFAULT NULL, | ||
`enable` tinyint(4) DEFAULT '1' COMMENT '1表示有效记录,0表示记录已被删除', | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `generate`; | ||
CREATE TABLE `generate` ( | ||
`id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`name` varchar(255) DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `multikey`; | ||
CREATE TABLE `multikey` ( | ||
`id1` varchar(255) NOT NULL COMMENT '联合主键1', | ||
`id2` varchar(255) CHARACTER SET latin1 COLLATE latin1_bin NOT NULL COMMENT '联合主键2', | ||
`name` varchar(255) DEFAULT NULL, | ||
`age` int(11) DEFAULT NULL, | ||
PRIMARY KEY (`id1`,`id2`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `odd`; | ||
CREATE TABLE `odd` ( | ||
`id` bigint(20) NOT NULL AUTO_INCREMENT, | ||
`data` mediumblob, | ||
`update_time` timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB AUTO_INCREMENT=2208669043496333243 DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `school_fuzhou`; | ||
CREATE TABLE `school_fuzhou` ( | ||
`id` bigint(20) NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`lastUpdate` timestamp NULL DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `test_table`; | ||
CREATE TABLE `test_table` ( | ||
`id` bigint(20) NOT NULL COMMENT 'Long 类型,第1列', | ||
`userid` varchar(255) NOT NULL COMMENT 'String 类型,联合索引1,第2列', | ||
`enable` bit(1) NOT NULL COMMENT 'boolean 类型,联合索引2,第3列', | ||
`height` smallint(6) DEFAULT NULL COMMENT 'Short 类型,第4列', | ||
`age` tinyint(4) DEFAULT NULL COMMENT 'byte 类型,第5列', | ||
`f` decimal(12,3) DEFAULT NULL COMMENT 'float 类型,第6列', | ||
`d` decimal(20,5) DEFAULT NULL COMMENT 'double 类型,第7列', | ||
`valid` bit(1) DEFAULT b'1' COMMENT '1表示有效记录,0表示记录已被删除', | ||
PRIMARY KEY (`id`), | ||
KEY `testtable_index1` (`userid`,`enable`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='用来测试表格自动生成'; | ||
|
||
|
||
DROP TABLE IF EXISTS `timedemo`; | ||
CREATE TABLE `timedemo` ( | ||
`id` bigint(20) NOT NULL, | ||
`name` varchar(255) DEFAULT NULL, | ||
`lastUpdate` timestamp NULL DEFAULT NULL, | ||
PRIMARY KEY (`id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; | ||
|
||
|
||
DROP TABLE IF EXISTS `user_detail`; | ||
CREATE TABLE `user_detail` ( | ||
`id` bigint(20) NOT NULL, | ||
`user_id` bigint(20) NOT NULL, | ||
`addr` varchar(255) DEFAULT NULL, | ||
`height` int(11) DEFAULT NULL, | ||
`valid` char(1) DEFAULT '1' COMMENT '1表示有效记录,0表示记录已被删除', | ||
PRIMARY KEY (`id`), | ||
KEY `user_detail_index1` (`user_id`) | ||
) ENGINE=InnoDB DEFAULT CHARSET=utf8; |