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/Kupuvac.java

    r1dd9226 rd14176d  
    1 package model;
     1package project.fmo.app.projcetfmo.Model;
    22
    3 import jakarta.persistence.*;
    43
     4import javax.persistence.*;
    55import java.util.Objects;
    66
    77@Entity
     8@Table(schema = "project", name = "kupuvac",  catalog = "db_202223z_va_prj_fmo")
    89public class Kupuvac {
    9     @GeneratedValue(strategy = GenerationType.IDENTITY)
     10
    1011    @Id
    1112    @Column(name = "id_korisnik")
     
    1415    @Column(name = "mail")
    1516    private String mail;
     17
     18    public Kupuvac(int idKorisnik, String mail) {
     19        this.idKorisnik=idKorisnik;
     20        this.mail=mail;
     21    }
     22
     23    public Kupuvac() {
     24    }
    1625
    1726    public int getIdKorisnik() {
Note: See TracChangeset for help on using the changeset viewer.