Ignore:
Timestamp:
01/06/23 15:26:00 (23 months ago)
Author:
andrejtodorovski <82031894+andrejtodorovski@…>
Branches:
main
Children:
9dcbf44
Parents:
f484b14
Message:

Added full functionality for adding review

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/com/example/autopartz/model/Review.java

    rf484b14 rd4b888e  
    77import org.hibernate.Hibernate;
    88
    9 import javax.persistence.Entity;
    10 import javax.persistence.Id;
    11 import javax.persistence.JoinColumn;
    12 import javax.persistence.ManyToOne;
     9import javax.persistence.*;
    1310import java.util.Objects;
    1411
     
    2017public class Review {
    2118    @Id
     19    @GeneratedValue(strategy = GenerationType.IDENTITY)
    2220    Integer ID_review;
    2321    Integer review_rating;
     
    2927    @JoinColumn(name = "id_user")
    3028    Client client;
     29
     30    public Review(Integer review_rating, String review_comment, Repair repair, Client client) {
     31        this.review_rating = review_rating;
     32        this.review_comment = review_comment;
     33        this.repair = repair;
     34        this.client = client;
     35    }
    3136
    3237    @Override
Note: See TracChangeset for help on using the changeset viewer.