Skip to content

Commit

Permalink
minor refactoring (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldietzler authored Jun 20, 2024
1 parent e6caa09 commit efda1f3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
6 changes: 5 additions & 1 deletion server/src/main/java/de/uftos/entities/LessonsCount.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
package de.uftos.entities;

import jakarta.persistence.*;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.ManyToOne;
import lombok.Data;
import lombok.NoArgsConstructor;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ public ConstraintInstanceService(ConstraintInstanceRepository repository) {
}

/**
* Creates a new constraint instance
* Creates a new constraint instance.
*
* @param signatureId the constraint signature id
* @param request the constraint instance request object
* @return the newly created constraint instance
* @param signatureId the constraint signature id.
* @param request the constraint instance request object.
* @return the newly created constraint instance.
*/
public ConstraintInstance create(String signatureId, ConstraintInstanceRequestDto request) {
return null;
Expand All @@ -54,7 +54,7 @@ public Page<ConstraintInstance> get(String signatureId, Pageable pageable) {
*
* @param id the ID of the constraintInstance.
* @return the constraintInstance with the given ID.
* @throws ResponseStatusException is thrown if the ID doesn't have a corresponding constraintInstance.
* @throws ResponseStatusException if the ID doesn't have a corresponding constraintInstance.
*/
public ConstraintInstance getById(String signatureId, String id) {
return this.repository.findById(id)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public Page<ConstraintSignature> get(Pageable pageable) {
*
* @param id the ID of the constraintSignature.
* @return the constraintSignature with the given ID.
* @throws ResponseStatusException is thrown if the ID doesn't have a corresponding constraintSignature.
* @throws ResponseStatusException if the ID doesn't have a corresponding constraintSignature.
*/
public ConstraintSignature getById(String id) {
return this.repository.findById(id)
Expand Down

0 comments on commit efda1f3

Please sign in to comment.