public class DtoUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> T |
createDto(T entity)
Attempts to create a default dto for an object by creating a new instance
and copying all properties.
|
public static <T> T createDto(T entity)
Will throw a runtime exception if anything goes wrong.
T - Entity type.entity - Original entity.Copyright © 2020. All rights reserved.