spring-gen 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ecaf911ebc51870af3d268372c514350ee6303f
4
- data.tar.gz: 93120d0eb78f25f4b8252d28da33c1a3c4ce21d4
3
+ metadata.gz: b4c62e47fa41f2fb4f0ea99c8c398fdf1f4dbb42
4
+ data.tar.gz: 7854065019826e515fdd4b020b9df382a595b423
5
5
  SHA512:
6
- metadata.gz: eb25788f33e9ecf4a18e3a3e4a30d02d5526a9d54b171e2c3e037781be0049c50b014ac4cba2ec03e2dead52ad60618358cdbff281c88763ae735cb80e75bb30
7
- data.tar.gz: dbac4d670c5b294413c65b7f13afc238165c8a639029e1b8ea325cc3e19f5ea61005715aa0edff1b9917567dbe54b90d92c0fc5e4f4a27cfa413189586d2bc62
6
+ metadata.gz: 9d1673875e1091f921ccd0f70da13e1174dfb1dfcfbd605e77e6bbace6cac0aad6da7bbb1380c2b0b49a611be676540def072258590812f238ebb905193b97f6
7
+ data.tar.gz: bc80cd1c6b3fdd585e552b196b999f219311060eac182bd9cf7348499bbe3b779dc4c67e5c0461d4ecc3bdde281c96ca901148e5f46d4870a1359159558fae8a
@@ -46,7 +46,7 @@ class Resource < Thor::Group
46
46
  "#{content_root}/src/test/resources/sampledata/#{@model_name.downcase}SampleData.xml"
47
47
  when "mongodb"
48
48
  @repository_import = "mongodb.repository.MongoRepository"
49
- @repository_type = "MongoRepository<#{@model_name},Long>"
49
+ @repository_type = "MongoRepository<#{@model_name},String>"
50
50
  @annotation_import = 'import org.springframework.data.mongodb.core.mapping.Document;'
51
51
  @entity_annotation = "@Document"
52
52
  template "templates/resource/test/integration/#{config.repository_technique}/SampleData.java.erb",
@@ -1,3 +1,3 @@
1
1
  module SpringGen
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -67,6 +67,7 @@ public class <%=@model_name%>Controller extends BaseController {
67
67
  }
68
68
 
69
69
  /**
70
+ * Creates a new <%=@model_name%>
70
71
  * @param entity the <%=@model_name.downcase%> from the post-request. This <%=@model_name.downcase%> is deserialized by
71
72
  * jackson.
72
73
  * @return A respoonse containing a link to the new resource.
@@ -79,7 +80,7 @@ public class <%=@model_name%>Controller extends BaseController {
79
80
  /**
80
81
  * Returns one <%=@model_name%>.
81
82
  *
82
- * @param id the id of the topic to return.
83
+ * @param id the id of the <%=@model_name.downcase%> to return.
83
84
  * @return a response.
84
85
  */
85
86
  @RequestMapping(value = "/{id}", method = RequestMethod.GET)
@@ -15,7 +15,7 @@ package <%=@package%>.integration.<%=@model_name.downcase%>;
15
15
  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
  */
17
17
 
18
- import org.asdf.model.<%=@model_name%>;
18
+ import <%=@package%>.model.<%=@model_name%>;
19
19
  import org.springframework.beans.factory.annotation.Autowired;
20
20
  import org.springframework.data.mongodb.core.MongoOperations;
21
21
  import org.springframework.stereotype.Component;
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spring-gen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rene Richter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-14 00:00:00.000000000 Z
11
+ date: 2015-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -146,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
146
146
  version: '0'
147
147
  requirements: []
148
148
  rubyforge_project:
149
- rubygems_version: 2.2.2
149
+ rubygems_version: 2.4.6
150
150
  signing_key:
151
151
  specification_version: 4
152
152
  summary: Generator for spring microservices