Package org.localify.festival.jpa
Class FestivalUser.Key
java.lang.Object
org.localify.festival.jpa.FestivalUser.Key
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FestivalUser
Represents the composite key for the FestivalUser entity.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Key
protected Key()Protected no-arg constructor for JPA. -
Key
Constructs a new Key.- Parameters:
userId- The user ID.festivalId- The festival ID.
-
-
Method Details
-
getUserId
Gets the user ID.- Returns:
- The user ID.
-
setUserId
Sets the user ID.- Parameters:
userId- The user ID.
-
getFestivalId
Gets the festival ID.- Returns:
- The festival ID.
-
setFestivalId
Sets the festival ID.- Parameters:
festivalId- The festival ID.
-
equals
-
hashCode
public int hashCode()
-