Skip to content

Instantly share code, notes, and snippets.

@fancyvanilla
Created June 3, 2025 21:57
Show Gist options
  • Save fancyvanilla/f13aafaea0a09a65781749ef7f9c2784 to your computer and use it in GitHub Desktop.
Save fancyvanilla/f13aafaea0a09a65781749ef7f9c2784 to your computer and use it in GitHub Desktop.
A Gist created from a code selection
package tn.mariemby.jee.challenge_stage.mappers;
import org.mapstruct.Mapper;
import tn.mariemby.jee.challenge_stage.auth.dtos.CreateUserDto;
import tn.mariemby.jee.challenge_stage.tasks.dtos.CreateTaskDto;
import tn.mariemby.jee.challenge_stage.tasks.entities.Task;
import tn.mariemby.jee.challenge_stage.users.dtos.UserDto;
import tn.mariemby.jee.challenge_stage.users.entities.User;
@Mapper(componentModel = "spring")
public interface TaskMapper {
Task toTask(CreateTaskDto taskDto);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment