Makes a reward accessible to the members of a user group, which is how access to a rewards programme is granted. A reward can be opened up to several groups and a group can be given several rewards, so this is the join between the two. The pairing is unique, so a group cannot be linked to the same reward twice. Removing the row takes the reward away from that group's members.
Group: Database Entities
Implements: Serializable
Properties
| Property | Returns | Description |
|---|---|---|
| createdDate | Date | The day the group was given access to the reward. The column is mapped as a date, so no time of day is kept. |
| groupToReward | Group | The user group whose members can access the reward. Never null. |
| id | Long | Database identifier for this group to reward link, assigned when it is first saved. |
| reward | Reward | The reward the group has been given access to. Never null. |
Methods
getId()
Returns: Long
Database identifier for this group to reward link, assigned when it is first saved.
getGroupToReward()
Returns: Group
The user group whose members can access the reward. Never null.
getReward()
Returns: Reward
The reward the group has been given access to. Never null.
getCreatedDate()
Returns: Date
The day the group was given access to the reward. The column is mapped as a date, so no time of day is kept.