19 lines
414 B
Java
19 lines
414 B
Java
package de.ph87.homeautomation.property;
|
|
|
|
import lombok.RequiredArgsConstructor;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
|
@Slf4j
|
|
@Service
|
|
@Transactional
|
|
@RequiredArgsConstructor
|
|
public class PropertyMapper {
|
|
|
|
public PropertyDto toDto(final Property property) {
|
|
return new PropertyDto(property);
|
|
}
|
|
|
|
}
|