2 * ================================================================================
4 * ================================================================================
5 * Copyright (C) 2017 AT&T Intellectual Property
6 * ================================================================================
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
18 * ================================================================================
20 /*package org.openecomp.portalapp.portal.transport;
22 import javax.persistence.Column;
23 import javax.persistence.Entity;
24 import javax.persistence.GeneratedValue;
25 import javax.persistence.GenerationType;
26 import javax.persistence.Id;
27 import javax.persistence.Table;
29 import org.openecomp.portalsdk.core.domain.support.DomainVo;
30 import com.fasterxml.jackson.annotation.JsonInclude;
33 * This is to handle portal admins
37 @Table(name="fn_event_widget_data")
38 @JsonInclude(JsonInclude.Include.NON_NULL)
39 public class EventWidget extends DomainVo{
44 private static final long serialVersionUID = -2784849102886421352L;
48 @GeneratedValue(strategy=GenerationType.AUTO)
52 @Column(name = "category")
53 private String category;
55 @Column(name = "title")
58 @Column(name = "href")
61 @Column(name = "content")
62 private String content;
64 @Column(name = "month_val")
67 @Column(name = "day_val")
70 @Column(name = "year_val")
73 @Column(name = "sort_order")
74 private Integer sortOrder;
76 public String getTitle() {
80 public void setTitle(String title) {
84 public String getHref() {
88 public void setHref(String href) {
92 public String getContent() {
96 public void setContent(String content) {
97 this.content = content;
100 public String getMon() {
104 public void setMonth(String mon) {
108 public Integer getDay() {
112 public void setDay(Integer day) {
116 public Integer getYear() {
120 public void setYear(Integer year) {
124 public Integer getSortOrder() {
128 public String getCategory() {
132 public void setCategory(String category) {
133 this.category = category;