Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
juncevich committed May 23, 2023
1 parent eea117d commit db2d663
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
import com.relay.infrastructure.db.annotation.EntityId;
import jakarta.persistence.*;
import lombok.*;
import org.hibernate.annotations.GenericGenerator;
import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.annotation.LastModifiedDate;

Expand All @@ -19,9 +18,6 @@
public class Relay {

@Id
//TODO: think about how to move such annotations to infrastructure
// @GeneratedValue(generator = "snowFlakeId")
// @GenericGenerator(name = "snowFlakeId", strategy = "com.relay.infrastructure.generator.SnowflakeIdGenerator")
@EntityId
private Long id;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Collection;

@RestController
@RequiredArgsConstructor
Expand All @@ -23,7 +23,7 @@ public class RelayController {
private final RelayService relayService;

@GetMapping("/relays")
public List<Relay> findAllRelays() {
public Collection<Relay> findAllRelays() {

return relayService.findAll(PageRequest.of(0, 100));
}
Expand Down

0 comments on commit db2d663

Please sign in to comment.