Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
erikhofer committed May 19, 2017
1 parent 22bae81 commit a4b3970
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,5 @@ nbdist/
src/main/resources/application.properties
.checkstyle
.asscache
*.class
com/
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ class LectureServiceImpl extends GrowthlecturesServiceImpl {

//TODO: remove
private LectureSummaryDto getSampleLecture() {
LectureSummaryDtoImpl dto = new LectureSummaryDtoImpl();
LectureSummaryDto dto = dtoFactory.createDto(LectureSummaryDto.class);
NamedDto cat = new NamedDtoImpl() as NamedDto;
cat.setName("Peter");
cat.setSlug("peter");
dto.category = cat;
dto.setCategory(cat);
dto.description = "Das ist die Beschreibung";
dto.duration = 817;
dto.rating = 3.5D;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
package com.xinra.growthlectures.service

import groovy.transform.CompileStatic
import org.apache.catalina.UserDatabase

@CompileStatic
class LectureSummaryDtoImpl extends NamedDtoImpl {

def NamedDto category;
//def NamedDto category;
def Boolean played;
def String description;
def Double rating;
def Integer userRating;
def Integer duration;

private NamedDto category;

public NamedDto getCategory() {
return category;
}

public void setCategory(NamedDto category) {
this.category = category;
}
}

0 comments on commit a4b3970

Please sign in to comment.