Add entity for notification_method_type table

Change-Id: I85142882654f65bbf9b47b661484a7d0ccf48ea2
Partially-implements: blueprint notification-engine-plugin
Implements: blueprint Notification Engine Plugin System
This commit is contained in:
haali1 2016-07-19 11:28:25 -07:00 committed by Haneef Ali
parent 52191ba73e
commit 0d5a286c4f
1 changed files with 55 additions and 0 deletions

View File

@ -0,0 +1,55 @@
/*
* (C) Copyright 2016 Hewlett Packard Enterprise Development LP
*
* Licensed 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 monasca.common.hibernate.db;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import org.joda.time.DateTime;
import monasca.common.model.alarm.AlarmNotificationMethodType;
@Entity
@Table(name = "notification_method_type")
public class NotificationMethodTypesDb {
private static final long serialVersionUID = 106453452028781371L;
@Id
@Column(name = "name", length = 20)
private String name;
public NotificationMethodTypesDb() {
}
public NotificationMethodTypesDb(String name){
this.name = name;
}
public void setName(final String name) {
this.name = name;
}
public String getName() {
return this.name;
}
}