mybatis-cli 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bd9dc702039466296371f1ca07eb495204fd1d32
4
- data.tar.gz: b06b438dbf63af998602e95a9d1d432f53f07968
3
+ metadata.gz: 4e4ab10bcfb724c23a04bfb6b3f3cc5a5accb554
4
+ data.tar.gz: 5d5d6d0565d9f7cea698dfbe5efd6f827e9a0bdb
5
5
  SHA512:
6
- metadata.gz: f5dd3e0723cba83c3a9360f734331ef5cef917c5d7e815df143d140fb3cca0c8ae755d5457fe8bf4a0c1780813005fd1fbcaa5b606b60e5a884557c78336cded
7
- data.tar.gz: f655c4778439ebbac3abdaf17359c9d99153cc19cf8422481bdac7afe11b0657e2a3edbca33290ffb13f166bd451a95c67561ade172994da23a2e233d4cdd1a2
6
+ metadata.gz: 73bfa9aba312b665325622840a83ef361d77364c917438dbc7135e07b078983f4c1a0ffdd0af32b27de6c2791182a44737c7046fa40ab95e1cb9484bcc866ec5
7
+ data.tar.gz: 7ccaf5935e9a98bf3c7ecde08352af7a4d8c6e5598808c60d411139e8cee5a94f209f8961398795f31260c4f626e6c45a7cd0228c664d435c01928ae179d927d
data/README.md CHANGED
@@ -1,6 +1,36 @@
1
1
  # Mybatis::Cli
2
2
 
3
- TODO: Write a gem description
3
+ 根据命令行参数生成mybatis对一张表增删改查的相关文件(po类、mapper类、mapper的xml)
4
+ 例如: test项目 目录结构如下
5
+ .
6
+ ├── pom.xml
7
+ └── src
8
+ └── main
9
+ ├── java
10
+ └── resources
11
+
12
+ t_user表的增删改查
13
+ mybatis g -p com.test.dao.po -n user -m com.test.dao --list user_id username create_time update_time
14
+
15
+ 执行后
16
+ .
17
+ ├── pom.xml
18
+ └── src
19
+ └── main
20
+ ├── java
21
+ │   └── com
22
+ │   └── test
23
+ │   └── dao
24
+ │   ├── mapper
25
+ │   │   └── UserMapper.java
26
+ │   └── po
27
+ │   └── User.java
28
+ └── resources
29
+ └── com
30
+ └── test
31
+ └── dao
32
+ └── mapper
33
+ └── UserMapper.xml
4
34
 
5
35
  ## Installation
6
36
 
@@ -20,8 +50,6 @@ Or install it yourself as:
20
50
 
21
51
  ## Usage
22
52
 
23
- TODO: Write usage instructions here
24
-
25
53
  ## Contributing
26
54
 
27
55
  1. Fork it ( https://github.com/typ0520/mybatis-cli/fork )
@@ -46,7 +46,6 @@ module Mybatis
46
46
  mapper_path << context.mapper_package.gsub(/\./,'/')
47
47
  else
48
48
  mapper_path << context.package.gsub(/\./,'/') if context.package
49
- mapper_path << 'mapper'
50
49
  end
51
50
  mapper_path << '/' unless mapper_path.end_with? '/'
52
51
  end
@@ -82,7 +82,6 @@ module Mybatis
82
82
  mapper_path << context.mapper_package.gsub(/\./,'/')
83
83
  else
84
84
  mapper_path << context.package.gsub(/\./,'/') if context.package
85
- mapper_path << 'mapper'
86
85
  end
87
86
  mapper_path << '/' unless mapper_path.end_with? '/'
88
87
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Mybatis
4
- VERSION = "0.0.8"
4
+ VERSION = "0.0.9"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mybatis-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - tong