Changeset d4b888e for src/main/java/com/example/autopartz/model/Review.java
- Timestamp:
- 01/06/23 15:26:00 (23 months ago)
- Branches:
- main
- Children:
- 9dcbf44
- Parents:
- f484b14
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/Review.java
rf484b14 rd4b888e 7 7 import org.hibernate.Hibernate; 8 8 9 import javax.persistence.Entity; 10 import javax.persistence.Id; 11 import javax.persistence.JoinColumn; 12 import javax.persistence.ManyToOne; 9 import javax.persistence.*; 13 10 import java.util.Objects; 14 11 … … 20 17 public class Review { 21 18 @Id 19 @GeneratedValue(strategy = GenerationType.IDENTITY) 22 20 Integer ID_review; 23 21 Integer review_rating; … … 29 27 @JoinColumn(name = "id_user") 30 28 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 } 31 36 32 37 @Override
Note:
See TracChangeset
for help on using the changeset viewer.