changes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/**
|
||||
* license: GPLv3
|
||||
* lodge.reservationsystem
|
||||
reservationsystem
|
||||
*/
|
||||
package lodge.datamodel;
|
||||
|
||||
@@ -227,7 +227,7 @@ public abstract class Reservation implements IReservation{
|
||||
// @TODO write reservation out in json
|
||||
public void Write(Reservation reservation) throws IOException {
|
||||
String dataRoot = DataRepository.getPath();
|
||||
dataRoot = dataRoot + "/rsv-" + reservation.reservation_number + ".json";
|
||||
dataRoot = dataRoot + "/res-" + reservation.reservation_number + ".json";
|
||||
Path path = Paths.get(dataRoot);
|
||||
|
||||
try (BufferedWriter writer = Files.newBufferedWriter(path, StandardCharsets.UTF_8)) {
|
||||
|
||||
Reference in New Issue
Block a user