-
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
166caf9
commit fdfc196
Showing
17 changed files
with
243 additions
and
135 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
Binary file added
BIN
+13.5 MB
public/Videos/Concept of Valency _ Atoms and Molecules _ Don t Memorise.mp4
Binary file not shown.
Binary file added
BIN
+11.4 MB
public/Videos/Isotopes and Isobars _ Atoms and Molecules _ Don t Memorise.mp4
Binary file not shown.
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
63 changes: 0 additions & 63 deletions
63
src/main/java/com/example/treaders/DataBaseConnection/JdbcClientRepository.java
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
package com.example.treaders.models; | ||
|
||
import jakarta.persistence.*; | ||
|
||
@Entity | ||
@Table(name = "user") | ||
public class UserFormat { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private int id; | ||
|
||
@Column(unique = true, nullable = false, length = 250) | ||
private String username; | ||
|
||
@Column(nullable = false, length = 250) | ||
private String password; | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public String getUsername() { | ||
return username; | ||
} | ||
|
||
public void setUsername(String username) { | ||
this.username = username; | ||
} | ||
|
||
public String getPassword() { | ||
return password; | ||
} | ||
|
||
public void setPassword(String password) { | ||
this.password = password; | ||
} | ||
} |
78 changes: 78 additions & 0 deletions
78
src/main/java/com/example/treaders/models/VideoFormat.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,78 @@ | ||
package com.example.treaders.models; | ||
|
||
import jakarta.persistence.*; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Entity | ||
@Table(name = "videos") | ||
public class VideoFormat { | ||
|
||
@Id | ||
@GeneratedValue(strategy = GenerationType.IDENTITY) | ||
private int id; | ||
|
||
@Column(length = 255) | ||
private String title; | ||
|
||
@Column(columnDefinition = "TEXT") | ||
private String description; | ||
|
||
@Column(length = 255) | ||
private String filepath; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "uploaded_by", nullable = false) | ||
private UserFormat uploadedBy; | ||
|
||
@Column(name = "uploaded_at", columnDefinition = "TIMESTAMP DEFAULT CURRENT_TIMESTAMP") | ||
private LocalDateTime uploadedAt=LocalDateTime.now(); | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
public String getTitle() { | ||
return title; | ||
} | ||
|
||
public void setTitle(String title) { | ||
this.title = title; | ||
} | ||
|
||
public String getDescription() { | ||
return description; | ||
} | ||
|
||
public void setDescription(String description) { | ||
this.description = description; | ||
} | ||
|
||
public String getFilepath() { | ||
return filepath; | ||
} | ||
|
||
public void setFilepath(String filepath) { | ||
this.filepath = filepath; | ||
} | ||
|
||
public UserFormat getUploadedBy() { | ||
return uploadedBy; | ||
} | ||
|
||
public void setUploadedBy(UserFormat uploadedBy) { | ||
this.uploadedBy = uploadedBy; | ||
} | ||
|
||
public LocalDateTime getUploadedAt() { | ||
return uploadedAt; | ||
} | ||
|
||
public void setUploadedAt(LocalDateTime uploadedAt) { | ||
this.uploadedAt = uploadedAt; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
src/main/java/com/example/treaders/services/UserRepository.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,10 @@ | ||
package com.example.treaders.services; | ||
|
||
import com.example.treaders.models.UserFormat; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
|
||
|
||
public interface UserRepository extends JpaRepository<UserFormat, Integer> { | ||
UserFormat findByUsername(String username); | ||
} |
7 changes: 7 additions & 0 deletions
7
src/main/java/com/example/treaders/services/VideoRepository.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,7 @@ | ||
package com.example.treaders.services; | ||
|
||
import com.example.treaders.models.VideoFormat; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
public interface VideoRepository extends JpaRepository<VideoFormat,Integer> { | ||
} |
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
16 changes: 0 additions & 16 deletions
16
src/main/java/com/example/treaders/videoFormat/VideoFormat.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.