Changeset 4d67d70 for src/main/java/com/example/autopartz/model/Price.java
- Timestamp:
- 01/07/23 01:51:16 (23 months ago)
- Branches:
- main
- Children:
- ed7ef92
- Parents:
- 89865ae
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/com/example/autopartz/model/Price.java
r89865ae r4d67d70 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.time.LocalDate; 14 11 import java.util.Objects; … … 21 18 public class Price { 22 19 @Id 20 @GeneratedValue(strategy = GenerationType.IDENTITY) 23 21 Integer ID_price; 24 22 Integer amount; … … 28 26 @JoinColumn(name = "id_part") 29 27 Part part; 28 29 public Price(Integer amount, LocalDate price_from, Part part) { 30 this.amount = amount; 31 this.price_from = price_from; 32 this.part = part; 33 } 30 34 31 35 @Override
Note:
See TracChangeset
for help on using the changeset viewer.