public static AnnotationDto transformToDto ( Annotation annotation ) { if ( annotation == null ) { throw new WebApplicationException ( "Null entity object cannot be converted to Dto object." , Status . INTERNAL_SERVER_ERROR ) ; } AnnotationDto result = createDtoObject ( AnnotationDto . class , annotation ) ; return result ; }
Converts annotation entity to DTO .