Ignore:
Timestamp:
09/21/22 18:46:15 (2 years ago)
Author:
Marko <Marko@…>
Branches:
master
Children:
d66b8eb
Parents:
7e88e46
Message:

Admin and specifications controllers added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • phonelux-backend/src/main/java/finki/it/phoneluxbackend/entities/PhoneOffer.java

    r7e88e46 r5201690  
    1414@Setter
    1515@ToString
     16@EqualsAndHashCode
    1617@Entity(name = "PhoneOffer")
    1718@Table(name = "phone_offers")
     
    7677
    7778    @ManyToMany(mappedBy = "favouriteOffers")
     79    @JsonIgnore
    7880    private List<User> users = new ArrayList<User>();
    7981
     
    112114        this.phone = phone;
    113115    }
     116
     117    public PhoneOffer(Long id,
     118                      String offer_shop,
     119                      String offer_name,
     120                      Integer price,
     121                      String ram_memory,
     122                      String rom_memory,
     123                      String color,
     124                      String front_camera,
     125                      String back_camera,
     126                      String chipset,
     127                      String battery,
     128                      String operating_system,
     129                      String cpu,
     130                      String image_url,
     131                      String offer_url,
     132                      Date last_updated,
     133                      Boolean is_validated,
     134                      String offer_description,
     135                      String offer_shop_code) {
     136        this.id = id;
     137        this.offer_shop = offer_shop;
     138        this.offer_name = offer_name;
     139        this.price = price;
     140        this.ram_memory = ram_memory;
     141        this.rom_memory = rom_memory;
     142        this.color = color;
     143        this.front_camera = front_camera;
     144        this.back_camera = back_camera;
     145        this.chipset = chipset;
     146        this.battery = battery;
     147        this.operating_system = operating_system;
     148        this.cpu = cpu;
     149        this.image_url = image_url;
     150        this.offer_url = offer_url;
     151        this.last_updated = last_updated;
     152        this.is_validated = is_validated;
     153        this.offer_description = offer_description;
     154        this.offer_shop_code = offer_shop_code;
     155    }
    114156}
Note: See TracChangeset for help on using the changeset viewer.