Skip to content

Commit

Permalink
Completed Models (version 1 - 19 May 2020)
Browse files Browse the repository at this point in the history
  • Loading branch information
dynhi committed May 19, 2020
1 parent 30179de commit 805c7bf
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 30 deletions.
1 change: 0 additions & 1 deletion src/main/java/com/iu/iulearn/model/Category.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.Generated;

import javax.persistence.*;
import java.util.ArrayList;
Expand Down
5 changes: 0 additions & 5 deletions src/main/java/com/iu/iulearn/model/Course.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.sql.Timestamp;
import java.util.ArrayList;
Expand Down Expand Up @@ -112,9 +111,5 @@ public Course(String title, String image, int lectures_count, int hour_count, in

public Course() {
}

public int getId() {
return id;
}
}

5 changes: 0 additions & 5 deletions src/main/java/com/iu/iulearn/model/Material.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

@Entity
@Table(name = "materials")
Expand Down Expand Up @@ -45,8 +44,4 @@ public Material(String title, String material_url, String content, Course course

public Material() {
}

public Course getCourse() {
return course;
}
}
6 changes: 0 additions & 6 deletions src/main/java/com/iu/iulearn/model/Role.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.UniqueElements;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.util.ArrayList;
import java.util.List;

Expand Down Expand Up @@ -41,8 +39,4 @@ public Role(String name, String description, List<User> users) {

public Role() {
}

public int getId() {
return id;
}
}
4 changes: 0 additions & 4 deletions src/main/java/com/iu/iulearn/model/User.java
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,4 @@ public User(String email, String password, String fullname, String avatar, Strin

public User() {
}

public int getId() {
return id;
}
}
4 changes: 0 additions & 4 deletions src/main/java/com/iu/iulearn/model/UserCourse.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,4 @@ public UserCourse(User user, Course course, int role) {

public UserCourse() {
}

public User getUser() {
return user;
}
}
5 changes: 0 additions & 5 deletions src/main/java/com/iu/iulearn/model/Video.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
import lombok.Setter;

import javax.persistence.*;
import javax.validation.constraints.NotNull;

@Entity
@Table(name = "videos")
Expand Down Expand Up @@ -46,8 +45,4 @@ public Video(String title, String url, int time_count, Course course) {

public Video() {
}

public int getId() {
return id;
}
}

0 comments on commit 805c7bf

Please sign in to comment.