-
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.
- Loading branch information
1 parent
7da186a
commit 9254ec4
Showing
7 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
backend/github_clone_api/src/main/java/com/digitalsouag/conventer/GRepositoryConventer.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,8 @@ | ||
package com.digitalsouag.conventer; | ||
|
||
import org.springframework.stereotype.Component; | ||
|
||
@Component | ||
public class GRepositoryConventer { | ||
private final | ||
} |
14 changes: 14 additions & 0 deletions
14
backend/github_clone_api/src/main/java/com/digitalsouag/dto/GRepositoryDTO.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,14 @@ | ||
package com.digitalsouag.dto; | ||
|
||
import com.digitalsouag.model.User; | ||
import lombok.Data; | ||
|
||
|
||
@Data | ||
public class GRepositoryDTO { | ||
private Long id; | ||
private String repositoryName; | ||
private String repositoryDescription; | ||
private boolean visibility; | ||
private User user; | ||
} |
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
22 changes: 22 additions & 0 deletions
22
backend/github_clone_api/src/main/java/com/digitalsouag/model/GRepository.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,22 @@ | ||
package com.digitalsouag.model; | ||
|
||
import lombok.Data; | ||
|
||
import javax.persistence.*; | ||
|
||
@Entity | ||
@Data | ||
@Table(name = "REPOSITORY") | ||
public class GRepository { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
@Column(name = "repo_id") | ||
private Long id; | ||
private String repositoryName; | ||
private String repositoryDescription; | ||
private boolean visibility; | ||
|
||
@ManyToOne() | ||
@JoinColumn(nullable = false, name = "user_id") | ||
private User user; | ||
} |
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
2 changes: 1 addition & 1 deletion
2
backend/github_clone_api/src/main/resources/messages_en.properties
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
NotEmpty=This field is required. | ||
Size.userDto.password=Try one with at least 6 characters. | ||
message.mail.verification=Thank you for creating an account. Please click the link below to activate your account. This link will expire in 24 hours. | ||
message.mail.verification=Thank you for creating an account. Please click the link below to activate your account. This link will expire in 24 hours. |