Skip to content

Commit

Permalink
appointment entity has been added
Browse files Browse the repository at this point in the history
  • Loading branch information
ituitis20-karadagd20 committed Dec 9, 2023
1 parent 1c49bf1 commit ee250eb
Show file tree
Hide file tree
Showing 2 changed files with 69 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,12 @@
<artifactId>spring-security-test</artifactId>
<scope>test</scope>
</dependency>
</dependencies>
<dependency>
<groupId>jakarta.persistence</groupId>
<artifactId>jakarta.persistence-api</artifactId>
<version>3.1.0</version>
</dependency>
</dependencies>

<build>
<plugins>
Expand Down
63 changes: 63 additions & 0 deletions src/main/java/Entities/Appointment.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
package Entities;

import jakarta.persistence.*;
import net.sf.jsqlparser.expression.DateTimeLiteralExpression;

@Entity
@Table(name="Appointment")
public class Appointment {
@Id
private int AppointmentID;
@ManyToOne
@JoinColumn(name="PetOwnerID",referencedColumnName = "PetOwnerID")
private PetOwner PetOwnerID;

@ManyToOne
@JoinColumn(name="VetID",referencedColumnName = "VetID")
private Veterinarian VetID;
private DateTimeLiteralExpression.DateTime AppointmentDate;
private int PetID;
public int getAppointmentID() {
return AppointmentID;
}

public void setAppointmentID(int appointmentID) {
AppointmentID = appointmentID;
}

public PetOwner getPetOwnerID() {
return PetOwnerID;
}

public void setPetOwnerID(PetOwner petOwnerID) {
PetOwnerID = petOwnerID;
}

public Veterinarian getVetID() {
return VetID;
}

public void setVetID(Veterinarian vetID) {
VetID = vetID;
}

public DateTimeLiteralExpression.DateTime getAppointmentDate() {
return AppointmentDate;
}

public void setAppointmentDate(DateTimeLiteralExpression.DateTime appointmentDate) {
AppointmentDate = appointmentDate;
}

public int getPetID() {
return PetID;
}

public void setPetID(int petID) {
PetID = petID;
}




}

0 comments on commit ee250eb

Please sign in to comment.