Class Customer

java.lang.Object
com.needleandstitch.pavuk.model.Customer

@Entity public class Customer extends Object
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 Details

    • Customer

      public Customer()
      Default constructor.
    • Customer

      public Customer(User user)
      Constructor to create a customer with a specified user.
      Parameters:
      user - The user associated with this customer
  • Method Details

    • getId

      public Long getId()
      Gets the unique identifier for the customer.
      Returns:
      The customer ID
    • setId

      public void setId(Long id)
      Sets the unique identifier for the customer.
      Parameters:
      id - The customer ID to set
    • getUser

      public User getUser()
      Gets the user associated with this customer.
      Returns:
      The user associated with this customer
    • setUser

      public void setUser(User user)
      Sets the user associated with this customer.
      Parameters:
      user - The user to set for this customer