We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8c9fb8 commit 5341e56Copy full SHA for 5341e56
opengrok-web/src/main/java/org/opengrok/web/util/DTO.java
@@ -33,6 +33,12 @@ private DTO() {
33
// private to ensure static
34
}
35
36
+ /**
37
+ * Generate Data Transfer Object from an object. Any field in the input object
38
+ * that is annotated with <code>DTOElement</code> will be brought along.
39
+ * @param object object to use as input
40
+ * @return DTO with values and generated getters/setters from input object
41
+ */
42
public static Object createDTO(Object object) {
43
// ModelMapper assumes getters/setters so use BeanGenerator to provide them.
44
BeanGenerator beanGenerator = new BeanGenerator();
0 commit comments