Ignore:
Timestamp:
03/10/23 21:43:30 (16 months ago)
Author:
SazdovaEkaterina <sazdovaekaterina@…>
Branches:
main
Children:
104185f
Parents:
b46d1f2 (diff), c3278ac (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

resolve merge conflicts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/entities/Food.java

    rb46d1f2 r0078d84  
    44import jakarta.persistence.*;
    55import lombok.Data;
     6import lombok.RequiredArgsConstructor;
     7
     8import java.util.List;
    69
    710@Data
    811@Entity
     12@RequiredArgsConstructor
    913@Table(name = "food")
    1014public class Food {
     
    2428    private FoodType type;
    2529
     30    @ManyToMany
     31    @JoinTable(name = "pet_preferably_eats_food",
     32            joinColumns = @JoinColumn(name = "id_food"),
     33            inverseJoinColumns = @JoinColumn(name = "id_pet"))
     34    List<Pet> pets;
     35
    2636    public Food(String manufacturer, String name, FoodType type) {
    2737        this.manufacturer = manufacturer;
     
    2939        this.type = type;
    3040    }
    31 
    32     public Food() {
    33     }
    3441}
Note: See TracChangeset for help on using the changeset viewer.