@Transient public ArticleEntityDTO toDTOWithoutPages() { ArticleEntityDTO dto = new ArticleEntityDTO(); dto.setAuthor(author.toDTO()); dto.setCategory(category.toDTO()); dto.setCreationDate(creationDate); dto.setFirstPublicationDate(firstPublicationDate); dto.setId(id); dto.setPublished(published); dto.setTitle(title); dto.setText(text); dto.setTeaser(teaser); return dto; }