package com.jvm_bloggers.frontend.public_area.common_layout;

import com.jvm_bloggers.domain.query.newsletter_issue_for_listing.NewsletterIssueForListing;
import com.jvm_bloggers.domain.query.newsletter_issue_for_listing.NewsletterIssueForListingQuery;

import javaslang.collection.Seq;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RightFrontendSidebarBackingBean {

    private final NewsletterIssueForListingQuery query;

    @Autowired
    public RightFrontendSidebarBackingBean(NewsletterIssueForListingQuery query) {
        this.query = query;
    }

    public Seq<NewsletterIssueForListing> getLatestIssues(int numberOfListedIssues) {
        return query.findLatestIssues(numberOfListedIssues);
    }
}

@@ -281,16 +281,49 @@
 n.Seq;%0A%0A
+import lombok.NoArgsConstructor;%0A
 import o
@@ -434,16 +434,35 @@
 Service%0A
+@NoArgsConstructor%0A
 public c
@@ -517,14 +517,8 @@
 ate 
-final 
 News

Add no-args constructor to avoid NPE during page de-serialization