Class Message
java.lang.Object
es.kukenan.smartfi.microservice.communication.repository.entity.Message
- All Implemented Interfaces:
Serializable
Message database entity.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @NotNull CompanyMessage company.private @Size(max=255) StringMessage description.Event messages.private intMessage identifier.private @NotBlank @Size(max=45) StringMessage name.Message receivers.private SenderMessage sender.private @NotNull MessageTypeMessage type. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
private int idMessage identifier. -
name
Message name. -
description
Message description. -
company
Message company. We do not need it because we already use it as a filter when finding the messages. -
type
Message type. We do not need the type for notification purposes, not marked for eager fetch. -
sender
Message sender. When we retrieve a message, we want the sender so fetch is marked as eager. -
receivers
Message receivers. When we retrieve a message, we want all its receivers so fetch is marked as eager. -
events
Event messages. We are not querying events directly at all.
-
-
Constructor Details
-
Message
public Message()
-