Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vinaypuranik/3762f0a1fcdfab7ded18ed6f6681b1a9 to your computer and use it in GitHub Desktop.
Save vinaypuranik/3762f0a1fcdfab7ded18ed6f6681b1a9 to your computer and use it in GitHub Desktop.
package ee.energia.ocppapi.model.entity;
import lombok.Data;
import javax.persistence.*;
import java.time.LocalDateTime;
@Data
@Entity
@Table(name = "\"ocpp-message-V_16-SetChargingProfile-conf\"")
@IdClass(SetChargingProfileConfPK.class)
class SetChargingProfileConf{
@Id
@Column(name = "\"__connect_topic\"")
private String connectTopic;
@Id
@Column(name = "\"__connect_partition\"")
private int connectPartition;
@Id
@Column(name = "\"__connect_offset\"")
private long connectOffset;
@Column(name = "\"wrapper.messageKey\"")
private String wrapperMessageKey;
@Column(name = "\"wrapper.errorDescription\"")
private String wrapperErrorDescription;
@Column(name = "\"wrapper.chargerId\"")
private String wrapperChargerId;
@Column(name = "\"wrapper.messageId\"")
private String wrapperMessageId;
@Column(name = "\"wrapper.errorCode\"")
private String wrapperErrorCode;
@Column(name = "\"wrapper.centralSystemId\"")
private String wrapperCentralSystemId;
@Column(name = "\"wrapper.ocppTransport\"")
private String wrapperOcppTransport;
@Column(name = "\"wrapper.ownership\"")
private String wrapperOwnership;
@Column(name = "\"wrapper.messageType\"")
private String wrapperMessageType;
@Column(name = "\"wrapper.messageDump\"")
private String wrapperMessageDump;
@Column(name = "\"wrapper.vendor\"")
private String wrapperVendor;
@Column(name = "\"wrapper.ocppVersion\"")
private String wrapperOcppVersion;
@Column(name = "\"wrapper.pduName\"")
private String wrapperPduName;
@Column(name = "\"wrapper.action\"")
private String wrapperAction;
@Column(name = "\"wrapper.errorDetails\"")
private String wrapperErrorDetails;
@Column(name = "\"wrapper.timestamp\"", columnDefinition = "TIMESTAMP")
private LocalDateTime wrapperTimestamp;
@Column(name="status")
private String status;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment