title: Getting only start of articles out of a database
body: <p>In a Spring Boot Web MVC application, I have a page with an overview of articles, and one with article details. </p>
  
  <p>The article's content should be limited to a certain length inside the overview, it should be its normal length in the article details page. </p>
  
  <p>Where would be the best place to "cut off" the rest of the article? Somehow in the SQL query? In the @Service class that retrieves the overview? Inside my view? I'd say in the view, simply because I feel that should contain the view logic.</p>
  
  <p>I use a @Repository with Spring JPA for the data retrieval. I use thymeleaf for my frontend pages.</p>