-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c49bf1
commit ee250eb
Showing
2 changed files
with
69 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
|
||
|
||
|
||
|
||
} |