Class FavoriteRouteModel

java.lang.Object
com.nnamo.models.FavoriteRouteModel

public class FavoriteRouteModel extends Object
Represents a user's favorite route. Used for storing the association between a user and a route in the database.
  • Constructor Details

    • FavoriteRouteModel

      public FavoriteRouteModel()
      Empty constructor required by OrmLite.
    • FavoriteRouteModel

      public FavoriteRouteModel(UserModel user, RouteModel route)
      Constructs a FavoriteRouteModel with the specified user and route.
      Parameters:
      user - the user who favorites the route
      route - the route marked as favorite
  • Method Details

    • getId

      public int getId()
      Gets the unique identifier of this favorite route entry.
      Returns:
      the id
    • getUser

      public UserModel getUser()
      Gets the user who marked the route as favorite.
      Returns:
      the user
    • getRoute

      public RouteModel getRoute()
      Gets the route marked as favorite.
      Returns:
      the route