Ignore:
Timestamp:
07/07/23 12:14:58 (16 months ago)
Author:
HristijanMitic00 <hristijan.mitic.01@…>
Branches:
main
Parents:
1dd9226
Message:

First commit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/project/fmo/app/projcetfmo/Model/TelefonskibrojPK.java

    r1dd9226 rd14176d  
    1 package model;
     1package project.fmo.app.projcetfmo.Model;
    22
    3 import jakarta.persistence.Column;
    4 import jakarta.persistence.GeneratedValue;
    5 import jakarta.persistence.GenerationType;
    6 import jakarta.persistence.Id;
     3import javax.persistence.*;
    74
    85import java.io.Serializable;
     
    129    @Column(name = "id_korisnik")
    1310    @Id
    14     @GeneratedValue(strategy = GenerationType.IDENTITY)
    1511    private int idKorisnik;
    1612    @Column(name = "telefonski_broj")
    1713    @Id
    18     @GeneratedValue(strategy = GenerationType.IDENTITY)
    1914    private String telefonskiBroj;
     15
     16
     17    public TelefonskibrojPK(){
     18
     19    }
     20    public TelefonskibrojPK(int idKorisnik, String telefonskiBroj) {
     21        this.idKorisnik = idKorisnik;
     22        this.telefonskiBroj = telefonskiBroj;
     23    }
    2024
    2125    public int getIdKorisnik() {
Note: See TracChangeset for help on using the changeset viewer.