com.flexicore.sendgrid.model.SendGridServerIdRef Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of send-grid-model Show documentation
Show all versions of send-grid-model Show documentation
FlexiCore model plugin , adds SendGrid support
The newest version!
package com.flexicore.sendgrid.model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.flexicore.interfaces.dynamic.FieldInfo;
import com.flexicore.model.Baseclass;
import com.flexicore.model.FilteringInformationHolder;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
@Entity
public class SendGridServerIdRef {
@Id
private String filterId;
@FieldInfo(displayName = "string",description = "string filter",mandatory = true)
private String id;
@ManyToOne(targetEntity = FilteringInformationHolder.class)
@JsonIgnore
private FilteringInformationHolder filteringInformationHolder;
public SendGridServerIdRef() {
}
public String getId() {
return id;
}
public SendGridServerIdRef setId(String id) {
this.id = id;
return this;
}
public SendGridServerIdRef(String id) {
this.id = id;
}
@Id
public String getFilterId() {
return filterId;
}
public SendGridServerIdRef setFilterId(String filterId) {
this.filterId = filterId;
return this;
}
@ManyToOne(targetEntity = FilteringInformationHolder.class)
@JsonIgnore
public FilteringInformationHolder getFilteringInformationHolder() {
return filteringInformationHolder;
}
public SendGridServerIdRef setFilteringInformationHolder(FilteringInformationHolder filteringInformationHolder) {
this.filteringInformationHolder = filteringInformationHolder;
return this;
}
public void prepareForSave(FilteringInformationHolder filteringInformationHolder) {
filterId = Baseclass.getBase64ID();
this.filteringInformationHolder = filteringInformationHolder;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy