Skip to content

Commit

Permalink
fix: Fix Kudos Sending outside of activities - MEED-2476 - Meeds-io/m…
Browse files Browse the repository at this point in the history
…eeds#1090 (#347)

Prior to this change, when sending a kudos outside of an activity, the Parent Entity Identifier is null while it was set as mandatory in Hibernate Entity Mapping. This change will ensure to use the exact same constraint as the ones made in database for this field, which is nullable.
  • Loading branch information
boubaker authored Sep 11, 2023
1 parent 261ca2a commit f0cfc8a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public class KudosEntity implements Serializable {
@Column(name = "IS_RECEIVER_USER", nullable = false)
public boolean isReceiverUser;

@Column(name = "PARENT_ENTITY_ID", nullable = false)
@Column(name = "PARENT_ENTITY_ID", nullable = true)
public Long parentEntityId;

@Column(name = "ENTITY_ID", nullable = false)
Expand Down

0 comments on commit f0cfc8a

Please sign in to comment.