Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦境迷离
Graphql Java Codegen
提交
4a2833fd
G
Graphql Java Codegen
项目概览
梦境迷离
/
Graphql Java Codegen
10 个月 前同步成功
通知
2
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Graphql Java Codegen
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
4a2833fd
编写于
9月 20, 2019
作者:
B
Bogdan Kobylynskyi
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Include all args constructor in the model generation #6
上级
08716df1
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
157 addition
and
0 deletion
+157
-0
src/main/resources/templates/javaClassGraphqlType.ftl
src/main/resources/templates/javaClassGraphqlType.ftl
+8
-0
src/test/resources/expected-classes/Commit.java.txt
src/test/resources/expected-classes/Commit.java.txt
+41
-0
src/test/resources/expected-classes/Commit_noValidationAnnotation.java.txt
...s/expected-classes/Commit_noValidationAnnotation.java.txt
+41
-0
src/test/resources/expected-classes/Event.java.txt
src/test/resources/expected-classes/Event.java.txt
+11
-0
src/test/resources/expected-classes/EventProperty.java.txt
src/test/resources/expected-classes/EventProperty.java.txt
+9
-0
src/test/resources/expected-classes/GithubAcceptTopicSuggestionInputTO.java.txt
...ected-classes/GithubAcceptTopicSuggestionInputTO.java.txt
+6
-0
src/test/resources/expected-classes/GithubCommitTO.java.txt
src/test/resources/expected-classes/GithubCommitTO.java.txt
+41
-0
未找到文件。
src/main/resources/templates/javaClassGraphqlType.ftl
浏览文件 @
4a2833fd
...
...
@@ -18,6 +18,14 @@ public class ${className} <#if implements?has_content>implements <#list implemen
public
${
className
}()
{
}
<#
if
fields
?
has_content
>
public
${
className
}(<#
list
fields
as
field
>${
field
.
type
}
${
field
.
name
}<#
if
field_has_next
>,
</#
if
></#
list
>)
{
<#
list
fields
as
field
>
this
.${
field
.
name
}
=
${
field
.
name
};
</#
list
>
}
</#
if
>
<#
list
fields
as
field
>
public
${
field
.
type
}
get
${
field
.
name
?
cap_first
}()
{
return
${
field
.
name
};
...
...
src/test/resources/expected-classes/Commit.java.txt
浏览文件 @
4a2833fd
...
...
@@ -76,6 +76,47 @@ public class Commit implements Closer, IssueTimelineItem, PullRequestTimelineIte
public Commit() {
}
public Commit(String abbreviatedOid, Integer additions, PullRequestConnection associatedPullRequests, GitActor author, Boolean authoredByCommitter, String authoredDate, Blame blame, Integer changedFiles, CommitCommentConnection comments, String commitResourcePath, String commitUrl, String committedDate, Boolean committedViaWeb, GitActor committer, Integer deletions, DeploymentConnection deployments, CommitHistoryConnection history, String id, String message, String messageBody, String messageBodyHTML, String messageHeadline, String messageHeadlineHTML, String oid, CommitConnection parents, String pushedDate, Repository repository, String resourcePath, GitSignature signature, Status status, String tarballUrl, Tree tree, String treeResourcePath, String treeUrl, String url, Boolean viewerCanSubscribe, SubscriptionState viewerSubscription, String zipballUrl) {
this.abbreviatedOid = abbreviatedOid;
this.additions = additions;
this.associatedPullRequests = associatedPullRequests;
this.author = author;
this.authoredByCommitter = authoredByCommitter;
this.authoredDate = authoredDate;
this.blame = blame;
this.changedFiles = changedFiles;
this.comments = comments;
this.commitResourcePath = commitResourcePath;
this.commitUrl = commitUrl;
this.committedDate = committedDate;
this.committedViaWeb = committedViaWeb;
this.committer = committer;
this.deletions = deletions;
this.deployments = deployments;
this.history = history;
this.id = id;
this.message = message;
this.messageBody = messageBody;
this.messageBodyHTML = messageBodyHTML;
this.messageHeadline = messageHeadline;
this.messageHeadlineHTML = messageHeadlineHTML;
this.oid = oid;
this.parents = parents;
this.pushedDate = pushedDate;
this.repository = repository;
this.resourcePath = resourcePath;
this.signature = signature;
this.status = status;
this.tarballUrl = tarballUrl;
this.tree = tree;
this.treeResourcePath = treeResourcePath;
this.treeUrl = treeUrl;
this.url = url;
this.viewerCanSubscribe = viewerCanSubscribe;
this.viewerSubscription = viewerSubscription;
this.zipballUrl = zipballUrl;
}
public String getAbbreviatedOid() {
return abbreviatedOid;
}
...
...
src/test/resources/expected-classes/Commit_noValidationAnnotation.java.txt
浏览文件 @
4a2833fd
...
...
@@ -46,6 +46,47 @@ public class Commit implements Closer, IssueTimelineItem, PullRequestTimelineIte
public Commit() {
}
public Commit(String abbreviatedOid, Integer additions, PullRequestConnection associatedPullRequests, GitActor author, Boolean authoredByCommitter, String authoredDate, Blame blame, Integer changedFiles, CommitCommentConnection comments, String commitResourcePath, String commitUrl, String committedDate, Boolean committedViaWeb, GitActor committer, Integer deletions, DeploymentConnection deployments, CommitHistoryConnection history, String id, String message, String messageBody, String messageBodyHTML, String messageHeadline, String messageHeadlineHTML, String oid, CommitConnection parents, String pushedDate, Repository repository, String resourcePath, GitSignature signature, Status status, String tarballUrl, Tree tree, String treeResourcePath, String treeUrl, String url, Boolean viewerCanSubscribe, SubscriptionState viewerSubscription, String zipballUrl) {
this.abbreviatedOid = abbreviatedOid;
this.additions = additions;
this.associatedPullRequests = associatedPullRequests;
this.author = author;
this.authoredByCommitter = authoredByCommitter;
this.authoredDate = authoredDate;
this.blame = blame;
this.changedFiles = changedFiles;
this.comments = comments;
this.commitResourcePath = commitResourcePath;
this.commitUrl = commitUrl;
this.committedDate = committedDate;
this.committedViaWeb = committedViaWeb;
this.committer = committer;
this.deletions = deletions;
this.deployments = deployments;
this.history = history;
this.id = id;
this.message = message;
this.messageBody = messageBody;
this.messageBodyHTML = messageBodyHTML;
this.messageHeadline = messageHeadline;
this.messageHeadlineHTML = messageHeadlineHTML;
this.oid = oid;
this.parents = parents;
this.pushedDate = pushedDate;
this.repository = repository;
this.resourcePath = resourcePath;
this.signature = signature;
this.status = status;
this.tarballUrl = tarballUrl;
this.tree = tree;
this.treeResourcePath = treeResourcePath;
this.treeUrl = treeUrl;
this.url = url;
this.viewerCanSubscribe = viewerCanSubscribe;
this.viewerSubscription = viewerSubscription;
this.zipballUrl = zipballUrl;
}
public String getAbbreviatedOid() {
return abbreviatedOid;
}
...
...
src/test/resources/expected-classes/Event.java.txt
浏览文件 @
4a2833fd
...
...
@@ -16,6 +16,17 @@ public class Event {
public Event() {
}
public Event(String id, String categoryId, Collection<EventProperty> properties, EventStatus status, String createdBy, String createdDateTime, Boolean active, Integer rating) {
this.id = id;
this.categoryId = categoryId;
this.properties = properties;
this.status = status;
this.createdBy = createdBy;
this.createdDateTime = createdDateTime;
this.active = active;
this.rating = rating;
}
public String getId() {
return id;
}
...
...
src/test/resources/expected-classes/EventProperty.java.txt
浏览文件 @
4a2833fd
...
...
@@ -14,6 +14,15 @@ public class EventProperty {
public EventProperty() {
}
public EventProperty(Float floatVal, Boolean booleanVal, Integer intVal, String stringVal, Collection<EventProperty> child, Event parent) {
this.floatVal = floatVal;
this.booleanVal = booleanVal;
this.intVal = intVal;
this.stringVal = stringVal;
this.child = child;
this.parent = parent;
}
public Float getFloatVal() {
return floatVal;
}
...
...
src/test/resources/expected-classes/GithubAcceptTopicSuggestionInputTO.java.txt
浏览文件 @
4a2833fd
...
...
@@ -13,6 +13,12 @@ public class GithubAcceptTopicSuggestionInputTO {
public GithubAcceptTopicSuggestionInputTO() {
}
public GithubAcceptTopicSuggestionInputTO(String clientMutationId, String name, String repositoryId) {
this.clientMutationId = clientMutationId;
this.name = name;
this.repositoryId = repositoryId;
}
public String getClientMutationId() {
return clientMutationId;
}
...
...
src/test/resources/expected-classes/GithubCommitTO.java.txt
浏览文件 @
4a2833fd
...
...
@@ -76,6 +76,47 @@ public class GithubCommitTO implements GithubCloserTO, GithubIssueTimelineItemTO
public GithubCommitTO() {
}
public GithubCommitTO(String abbreviatedOid, Integer additions, GithubPullRequestConnectionTO associatedPullRequests, GithubGitActorTO author, Boolean authoredByCommitter, String authoredDate, GithubBlameTO blame, Integer changedFiles, GithubCommitCommentConnectionTO comments, String commitResourcePath, String commitUrl, String committedDate, Boolean committedViaWeb, GithubGitActorTO committer, Integer deletions, GithubDeploymentConnectionTO deployments, GithubCommitHistoryConnectionTO history, String id, String message, String messageBody, String messageBodyHTML, String messageHeadline, String messageHeadlineHTML, String oid, GithubCommitConnectionTO parents, String pushedDate, GithubRepositoryTO repository, String resourcePath, GithubGitSignatureTO signature, GithubStatusTO status, String tarballUrl, GithubTreeTO tree, String treeResourcePath, String treeUrl, String url, Boolean viewerCanSubscribe, GithubSubscriptionStateTO viewerSubscription, String zipballUrl) {
this.abbreviatedOid = abbreviatedOid;
this.additions = additions;
this.associatedPullRequests = associatedPullRequests;
this.author = author;
this.authoredByCommitter = authoredByCommitter;
this.authoredDate = authoredDate;
this.blame = blame;
this.changedFiles = changedFiles;
this.comments = comments;
this.commitResourcePath = commitResourcePath;
this.commitUrl = commitUrl;
this.committedDate = committedDate;
this.committedViaWeb = committedViaWeb;
this.committer = committer;
this.deletions = deletions;
this.deployments = deployments;
this.history = history;
this.id = id;
this.message = message;
this.messageBody = messageBody;
this.messageBodyHTML = messageBodyHTML;
this.messageHeadline = messageHeadline;
this.messageHeadlineHTML = messageHeadlineHTML;
this.oid = oid;
this.parents = parents;
this.pushedDate = pushedDate;
this.repository = repository;
this.resourcePath = resourcePath;
this.signature = signature;
this.status = status;
this.tarballUrl = tarballUrl;
this.tree = tree;
this.treeResourcePath = treeResourcePath;
this.treeUrl = treeUrl;
this.url = url;
this.viewerCanSubscribe = viewerCanSubscribe;
this.viewerSubscription = viewerSubscription;
this.zipballUrl = zipballUrl;
}
public String getAbbreviatedOid() {
return abbreviatedOid;
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录