blob: 1ad4b379b566be52bf7afe41195845abd279e9c6 [file] [log] [blame]
//Licensed to the Apache Software Foundation (ASF) under one
//or more contributor license agreements. See the NOTICE file
//distributed with this work for additional information
//regarding copyright ownership. The ASF licenses this file
//to you under the Apache License, Version 2.0 (the
//"License"); you may not use this file except in compliance
//with the License. You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing,
//software distributed under the License is distributed on an
//"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
//KIND, either express or implied. See the License for the
//specific language governing permissions and limitations
//under the License.
package org.apache.cloudstack.quota.vo;
import org.apache.cloudstack.api.InternalIdentity;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;
@Entity
@Table(name = "quota_email_templates")
public class QuotaEmailTemplatesVO implements InternalIdentity {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "id")
private Long id;
@Column(name = "template_name")
private String templateName;
@Column(name = "template_subject")
private String templateSubject;
@Column(name = "template_body")
private String templateBody;
@Column(name = "locale")
private String locale;
@Column(name = "updated")
@Temporal(value = TemporalType.TIMESTAMP)
private Date lastUpdated = null;
public QuotaEmailTemplatesVO() {
}
public QuotaEmailTemplatesVO(String templateName, String templateSubject, String templateBody) {
super();
this.templateName = templateName;
this.templateSubject = templateSubject;
this.templateBody = templateBody;
}
@Override
public long getId() {
return id;
}
public String getTemplateName() {
return templateName;
}
public void setTemplateName(String templateName) {
this.templateName = templateName;
}
public String getTemplateSubject() {
return templateSubject;
}
public void setTemplateSubject(String templateSubject) {
this.templateSubject = templateSubject;
}
public String getTemplateBody() {
return templateBody;
}
public void setTemplateBody(String templateBody) {
this.templateBody = templateBody;
}
public Date getLastUpdated() {
return lastUpdated == null ? null : new Date(lastUpdated.getTime());
}
public void setLastUpdated(Date lastUpdated) {
this.lastUpdated = lastUpdated == null ? null : new Date(lastUpdated.getTime());
}
public String getLocale() {
return locale;
}
public void setLocale(String locale) {
this.locale = locale;
}
}