-
Notifications
You must be signed in to change notification settings - Fork 1
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
51c3e51
commit bee5734
Showing
6 changed files
with
69 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package com.sitblueprint.admin.model.blog; | ||
|
||
import jakarta.persistence.*; | ||
import lombok.AllArgsConstructor; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.time.LocalDateTime; | ||
import java.util.List; | ||
|
||
@Entity | ||
@Table(name = "blogs") | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class Blog { | ||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private Long id; | ||
|
||
private String title; | ||
|
||
private LocalDateTime datePublished; | ||
|
||
private LocalDateTime lastModified; | ||
|
||
private String status; // Published, In Progress, Deleted | ||
|
||
private String pathToMarkdown; | ||
} |
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
9 changes: 9 additions & 0 deletions
9
...com/sitblueprint/admin/repository/applications/ApplicationSatisfactionFormRepository.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,9 @@ | ||
package com.sitblueprint.admin.repository.applications; | ||
|
||
import com.sitblueprint.admin.model.applications.ApplicationSatisfactionForm; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
public interface ApplicationSatisfactionFormRepository extends JpaRepository<ApplicationSatisfactionForm, Long> { | ||
} |
9 changes: 9 additions & 0 deletions
9
src/main/java/com/sitblueprint/admin/repository/blog/BlogRepository.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,9 @@ | ||
package com.sitblueprint.admin.repository.blog; | ||
|
||
import com.sitblueprint.admin.model.blog.Blog; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
@Repository | ||
public interface BlogRepository extends JpaRepository<Blog, Long> { | ||
} |
19 changes: 19 additions & 0 deletions
19
src/main/java/com/sitblueprint/admin/service/blog/BlogService.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,19 @@ | ||
package com.sitblueprint.admin.service.blog; | ||
|
||
import com.sitblueprint.admin.model.blog.Blog; | ||
|
||
import java.util.List; | ||
|
||
public interface BlogService { | ||
List<Blog> getAllBlogs(); | ||
|
||
Blog getBlogById(Long id); | ||
|
||
Blog createBlog(Long blog); | ||
|
||
Blog updateBlog(Blog blog); | ||
|
||
void deleteBlog(Long id); | ||
|
||
void setBlogToPublished(Long id); | ||
} |