public static < T > T dtoFromScratch ( T entity , DTO dtoTemplate ) throws HyalineException { return dtoFromScratch ( entity , dtoTemplate , "Hyaline$Proxy$" + System . currentTimeMillis ( ) ) ; }
It lets you create a new DTO from scratch . This means that any annotation from JAXB Jackson or whatever serialization framework you are using on your entity T will be ignored . The only annotation - based configuration that will be used is the one you are defining in this invocation .