@@ -0,0 +1,2826 @@
+/*%0A * Copyright 2015 Ryan Gilera.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *      http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage com.github.daytron.revworks.model;%0A%0Aimport com.github.daytron.revworks.data.AnnouncementType;%0Aimport java.time.LocalDateTime;%0A%0A/**%0A * Announcement model class for Announcement table.%0A *%0A * @author Ryan Gilera%0A */%0Apublic class Announcement %7B%0A%0A    private final int id;%0A    private final String title;%0A    private final String message;%0A    private final LocalDateTime dateTimeSubmitted;%0A    private final AnnouncementType announcementType;%0A    private final String announcementSource;%0A    private final String moduleId;%0A    private final String modulename;%0A%0A    public Announcement(int id, String title, String message,%0A            LocalDateTime dateTimeSubmitted, AnnouncementType announcementType,%0A            String announcementSource) %7B%0A        this(id, title, message, dateTimeSubmitted, announcementType,%0A                announcementSource, null, null);%0A    %7D%0A%0A    public Announcement(int id, String title, String message,%0A            LocalDateTime dateTimeSubmitted, AnnouncementType announcementType,%0A            String announcementSource, String moduleId, String moduleName) %7B%0A        this.id = id;%0A        this.title = title;%0A        this.message = message;%0A        this.dateTimeSubmitted = dateTimeSubmitted;%0A        this.announcementType = announcementType;%0A        this.announcementSource = announcementSource;%0A        this.moduleId = moduleId;%0A        this.modulename = moduleName;%0A    %7D%0A%0A    public int getId() %7B%0A        return id;%0A    %7D%0A%0A    public String getTitle() %7B%0A        return title;%0A    %7D%0A%0A    public String getMessage() %7B%0A        return message;%0A    %7D%0A%0A    public LocalDateTime getDateTimeSubmitted() %7B%0A        return dateTimeSubmitted;%0A    %7D%0A%0A    public AnnouncementType getAnnouncementType() %7B%0A        return announcementType;%0A    %7D%0A%0A    public boolean isClassWideAnnouncement() %7B%0A        return announcementType == AnnouncementType.CLASS_WIDE;%0A    %7D%0A%0A    public boolean isSystemWideAnnouncement() %7B%0A        return announcementType == AnnouncementType.SYSTEM_WIDE;%0A    %7D%0A%0A    public String getAnnouncementSource() %7B%0A        return announcementSource;%0A    %7D%0A%0A    public String getModuleId() %7B%0A        return moduleId;%0A    %7D%0A%0A    public String getModulename() %7B%0A        return modulename;%0A    %7D%0A%0A%7D%0A

Add announcement class as a model for announcement table