-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #47 from Informatik-Projekt-Kurs/IPK-169-Basic-App…
…ointment-Attributes Added Classes for appointment management and created a appointement m…
- Loading branch information
Showing
8 changed files
with
72 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
//package com.MeetMate._experiments; | ||
// | ||
//import java.time.LocalDateTime; | ||
//import java.time.Period; | ||
// | ||
//public class testapp { | ||
// public static void main(String[] args) { | ||
// Object o = Period.between(LocalDateTime.now(), LocalDateTime.now().plusDays(1)); | ||
// System.out.println(o); | ||
// } | ||
//} |
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,24 @@ | ||
package com.MeetMate.appointment; | ||
|
||
import com.MeetMate.enums.AppointmentStatus; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.springframework.data.mongodb.core.mapping.Document; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Document(collection = "appointments") | ||
@Data | ||
@NoArgsConstructor | ||
public class Appointment { | ||
long id; | ||
LocalDateTime from; | ||
LocalDateTime to; | ||
long companyID; | ||
long clientID; | ||
long assigneeID; | ||
// Select Prompt → f.E. medical industry: Untersuchung, Operation | ||
String description; | ||
String location; | ||
AppointmentStatus status; | ||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/com/MeetMate/appointment/AppointmentController.java
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,4 @@ | ||
package com.MeetMate.appointment; | ||
|
||
public class AppointmentController { | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/com/MeetMate/appointment/AppointmentRepository.java
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,12 @@ | ||
package com.MeetMate.appointment; | ||
|
||
import org.springframework.data.mongodb.repository.MongoRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.Optional; | ||
|
||
@Repository | ||
public interface AppointmentRepository extends MongoRepository<Appointment, Long> { | ||
|
||
|
||
} |
4 changes: 4 additions & 0 deletions
4
src/main/java/com/MeetMate/appointment/AppointmentService.java
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,4 @@ | ||
package com.MeetMate.appointment; | ||
|
||
public class AppointmentService { | ||
} |
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,8 @@ | ||
package com.MeetMate.enums; | ||
|
||
public enum AppointmentStatus { | ||
APPROVED, | ||
DECLINED, | ||
DONE, | ||
CANCELLED; | ||
} |
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