public static < T > T dtoFromScratch ( T entity , DTO dtoTemplate , String proxyClassName ) throws HyalineException { try { return createDTO ( entity , dtoTemplate , true , proxyClassName ) ; } catch ( CannotInstantiateProxyException | DTODefinitionException e ) { e . printStackTrace ( ) ; throw new HyalineException ( ) ; } }
It lets you create a new DTO from scratch . This means that any annotation for 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 .