-
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.
- Loading branch information
1 parent
c337721
commit 2fc7168
Showing
14 changed files
with
958 additions
and
76 deletions.
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
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
69 changes: 69 additions & 0 deletions
69
java-springboot-final/src/main/java/org/example/models/Order.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,69 @@ | ||
package org.example.models; | ||
|
||
/** | ||
* Model for an order. | ||
*/ | ||
public class Order { | ||
/** | ||
* The ID of the order. | ||
*/ | ||
private int id; | ||
|
||
/** | ||
* The username of the order. | ||
*/ | ||
private String username; | ||
|
||
/** | ||
* Creates a new order. | ||
*/ | ||
public Order() { | ||
} | ||
|
||
/** | ||
* Creates a new order. | ||
* | ||
* @param id The ID of the order. | ||
* @param username The username of the order. | ||
*/ | ||
public Order(int id, String username) { | ||
this.id = id; | ||
this.username = username; | ||
} | ||
|
||
/** | ||
* Gets the ID of the order. | ||
* | ||
* @return int | ||
*/ | ||
public int getId() { | ||
return id; | ||
} | ||
|
||
/** | ||
* Sets the ID of the order. | ||
* | ||
* @param id The ID of the order. | ||
*/ | ||
public void setId(int id) { | ||
this.id = id; | ||
} | ||
|
||
/** | ||
* Gets the username of the order. | ||
* | ||
* @return String | ||
*/ | ||
public String getUsername() { | ||
return username; | ||
} | ||
|
||
/** | ||
* Sets the username of the order. | ||
* | ||
* @param username The username of the order. | ||
*/ | ||
public void setUsername(String username) { | ||
this.username = username; | ||
} | ||
} |
Oops, something went wrong.