Class Customer
java.lang.Object
com.needleandstitch.pavuk.model.Customer
An entity class for customer.
This class serves as a model for the customer table in the database.
- Since:
- 15.12.2024
- Version:
- 1.0.0
- Author:
- Needle & Stitch
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Customer
public Customer()Default constructor. -
Customer
Constructor to create a customer with a specified user.- Parameters:
user
- The user associated with this customer
-
-
Method Details
-
getId
-
setId
Sets the unique identifier for the customer.- Parameters:
id
- The customer ID to set
-
getUser
Gets the user associated with this customer.- Returns:
- The user associated with this customer
-
setUser
Sets the user associated with this customer.- Parameters:
user
- The user to set for this customer
-