Changeset 038c9f7


Ignore:
Timestamp:
02/04/23 15:42:05 (21 months ago)
Author:
SazdovaEkaterina <sazdovaekaterina@…>
Branches:
main
Children:
3d3e59d
Parents:
579bf6d
Message:

add @GeneratedValue to ids

Location:
Prototype Application/Paw5/src/main/java/finki/paw5/model
Files:
10 edited

Legend:

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

    r579bf6d r038c9f7  
    11package finki.paw5.model;
    22
    3 import jakarta.persistence.Column;
    4 import jakarta.persistence.Entity;
    5 import jakarta.persistence.Id;
    6 import jakarta.persistence.Table;
     3import jakarta.persistence.*;
    74import lombok.Data;
    85
     
    1613
    1714    @Id
     15    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1816    @Column(name = "id_adoption")
    1917    private int id;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/Category.java

    r579bf6d r038c9f7  
    11package finki.paw5.model;
    22
    3 import jakarta.persistence.Column;
    4 import jakarta.persistence.Entity;
    5 import jakarta.persistence.Id;
    6 import jakarta.persistence.Table;
     3import jakarta.persistence.*;
    74import lombok.Data;
    85
     
    1310
    1411    @Id
     12    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1513    @Column(name = "id_category")
    1614    private int id;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/Food.java

    r579bf6d r038c9f7  
    22
    33import finki.paw5.model.enumerations.FoodType;
    4 import jakarta.persistence.Column;
    5 import jakarta.persistence.Entity;
    6 import jakarta.persistence.Id;
    7 import jakarta.persistence.Table;
     4import jakarta.persistence.*;
    85import lombok.Data;
    96
     
    1411
    1512    @Id
     13    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1614    @Column(name = "id_food")
    1715    private int id;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/Organisation.java

    r579bf6d r038c9f7  
    11package finki.paw5.model;
    22
    3 import jakarta.persistence.Column;
    4 import jakarta.persistence.Entity;
    5 import jakarta.persistence.Id;
    6 import jakarta.persistence.Table;
     3import jakarta.persistence.*;
    74import lombok.Data;
    85
     
    1310
    1411    @Id
     12    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1513    @Column(name = "id_organisation")
    1614    private int id;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/Pet.java

    r579bf6d r038c9f7  
    55import finki.paw5.model.enumerations.Size;
    66import finki.paw5.model.enumerations.Species;
    7 import jakarta.persistence.Column;
    8 import jakarta.persistence.Entity;
    9 import jakarta.persistence.Id;
    10 import jakarta.persistence.Table;
     7import jakarta.persistence.*;
    118import lombok.Data;
    129
     
    1714
    1815    @Id
     16    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1917    @Column(name = "id_pet")
    2018    private int id;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/Post.java

    r579bf6d r038c9f7  
    11package finki.paw5.model;
    22
    3 import jakarta.persistence.Column;
    4 import jakarta.persistence.Entity;
    5 import jakarta.persistence.Id;
    6 import jakarta.persistence.Table;
     3import jakarta.persistence.*;
    74import lombok.Data;
    85
     
    1613
    1714    @Id
     15    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1816    @Column(name = "id_post")
    1917    private int id;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/Shelter.java

    r579bf6d r038c9f7  
    11package finki.paw5.model;
    22
    3 import jakarta.persistence.Column;
    4 import jakarta.persistence.Entity;
    5 import jakarta.persistence.Id;
    6 import jakarta.persistence.Table;
     3import jakarta.persistence.*;
    74import lombok.Data;
    85
     
    1310
    1411    @Id
     12    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1513    @Column(name = "id_shelter")
    1614    private int id;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/Therapy.java

    r579bf6d r038c9f7  
    11package finki.paw5.model;
    22
    3 import jakarta.persistence.Column;
    4 import jakarta.persistence.Entity;
    5 import jakarta.persistence.Id;
    6 import jakarta.persistence.Table;
     3import jakarta.persistence.*;
    74import lombok.Data;
    85
     
    1613
    1714    @Id
     15    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1816    @Column(name = "id_therapy")
    1917    private int id;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/User.java

    r579bf6d r038c9f7  
    1414
    1515    @Id
     16    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1617    @Column(name = "id_user")
    1718    protected int id;
  • Prototype Application/Paw5/src/main/java/finki/paw5/model/VetClinic.java

    r579bf6d r038c9f7  
    11package finki.paw5.model;
    22
    3 import jakarta.persistence.Column;
    4 import jakarta.persistence.Entity;
    5 import jakarta.persistence.Id;
    6 import jakarta.persistence.Table;
     3import jakarta.persistence.*;
    74import lombok.Data;
    85
     
    1310
    1411    @Id
     12    @GeneratedValue(strategy = GenerationType.IDENTITY)
    1513    @Column(name = "id_vet_clinic")
    1614    private int id;
Note: See TracChangeset for help on using the changeset viewer.