-
-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce model annotations (for Lombok) #10
- Loading branch information
1 parent
8e332ed
commit 41cbfae
Showing
8 changed files
with
124 additions
and
7 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
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
88 changes: 88 additions & 0 deletions
88
src/test/resources/expected-classes/Event_with_lombok_annotations.java.txt
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 |
---|---|---|
@@ -0,0 +1,88 @@ | ||
package com.kobylynskyi.graphql.test1; | ||
|
||
import java.util.*; | ||
|
||
@lombok.Builder | ||
@lombok.Data | ||
public class Event { | ||
|
||
private String id; | ||
private String categoryId; | ||
private Collection<EventProperty> properties; | ||
private EventStatus status; | ||
private String createdBy; | ||
private String createdDateTime; | ||
private Boolean active; | ||
private Integer rating; | ||
|
||
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; | ||
} | ||
public void setId(String id) { | ||
this.id = id; | ||
} | ||
|
||
public String getCategoryId() { | ||
return categoryId; | ||
} | ||
public void setCategoryId(String categoryId) { | ||
this.categoryId = categoryId; | ||
} | ||
|
||
public Collection<EventProperty> getProperties() { | ||
return properties; | ||
} | ||
public void setProperties(Collection<EventProperty> properties) { | ||
this.properties = properties; | ||
} | ||
|
||
public EventStatus getStatus() { | ||
return status; | ||
} | ||
public void setStatus(EventStatus status) { | ||
this.status = status; | ||
} | ||
|
||
public String getCreatedBy() { | ||
return createdBy; | ||
} | ||
public void setCreatedBy(String createdBy) { | ||
this.createdBy = createdBy; | ||
} | ||
|
||
public String getCreatedDateTime() { | ||
return createdDateTime; | ||
} | ||
public void setCreatedDateTime(String createdDateTime) { | ||
this.createdDateTime = createdDateTime; | ||
} | ||
|
||
public Boolean getActive() { | ||
return active; | ||
} | ||
public void setActive(Boolean active) { | ||
this.active = active; | ||
} | ||
|
||
public Integer getRating() { | ||
return rating; | ||
} | ||
public void setRating(Integer rating) { | ||
this.rating = rating; | ||
} | ||
|
||
} |