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