-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added sample texts and external product template files
- Loading branch information
Showing
5 changed files
with
195 additions
and
25 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
39 changes: 39 additions & 0 deletions
39
server/src/main/java/online/projektassistent/server/model/ExternalCopyTemplate.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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package online.projektassistent.server.model; | ||
|
||
import javax.validation.constraints.NotBlank; | ||
import java.util.Objects; | ||
|
||
@SuppressWarnings("unused") | ||
public class ExternalCopyTemplate { | ||
|
||
@NotBlank(message = "title is mandatory") | ||
private String title; | ||
@NotBlank(message = "uri is mandatory") | ||
private String uri; | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public String getUri() { | ||
return uri; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
|
||
ExternalCopyTemplate chapter = (ExternalCopyTemplate) o; | ||
|
||
if (!Objects.equals(title, chapter.title)) return false; | ||
return Objects.equals(uri, chapter.uri); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
int result = title != null ? title.hashCode() : 0; | ||
result = 31 * result + (uri != null ? uri.hashCode() : 0); | ||
return result; | ||
} | ||
} |
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
Oops, something went wrong.