public DTOCollection from ( Project project , JavaClass < ? > entity , String dtoPackage ) { DTOCollection dtoCollection = new DTOCollection ( ) ; if ( entity == null ) { throw new IllegalArgumentException ( "The argument entity was null." ) ; } generatedDTOGraphForEntity ( project , entity , dtoPackage , true , false , dtoCollection ) ; return dtoCollection ; }
Creates a collection of DTOs for the provided JPA entity and any JPA entities referenced in the JPA entity .