Skip to content

Commit

Permalink
Merge pull request #96 from gfa-cc-after/SCRUM-84
Browse files Browse the repository at this point in the history
SCRUM 84
  • Loading branch information
ramesz6 authored Aug 31, 2024
2 parents af2fe18 + 8094573 commit 47177b3
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.greenfoxacademy.backend.models;

import jakarta.persistence.Embeddable;
import lombok.Data;

/**
* Represents the details of a clinic.
* <p>
* The {@code ClinicDetails} class is used as an embeddable type in JPA entities to store detailed
* information about a clinic. This class contains the address of the clinic as well as any
* additional details that may be relevant for clinic management.
* </p>
* <p>
* This class is annotated with {@code @Embeddable} to indicate that it can be embedded within
* other JPA entities.
* </p>
*
* @see ClinicAddress
*/

@Data
@Embeddable
public class ClinicDetails {

private ClinicAddress clinicAddress;

}
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@Entity
@Table(name = "_vet")
public class Vet extends User {
private ClinicAddress clinicAddress;
private ClinicDetails clinicDetails;

@Override
@Transient
Expand Down

0 comments on commit 47177b3

Please sign in to comment.