Command to Generate both a Routing Module & Component

There is no separate command to create routing.module file. But, that can be created while on the creation of the module: ng generate module [module-name] –routing or the shorthand version of the command: ng g m [module-name] –routing … will create the module and add the mappings/metadata linkings. I was searching about this a bit … Read more

Java JDBC Lazy-Loaded ResultSet

Short answer: Use Statement.setFetchSize(1) before calling executeQuery(). Long answer: This depends very much on which JDBC driver you are using. You might want to take a look at this page, which describes the behavior of MySQL, Oracle, SQL Server, and DB2. Major take-aways: Each database (i.e. each JDBC driver) has its own default behavior. Some … Read more

Entity Framework Code First Lazy Loading

This is wrong “virtual” keyword is used for not loading the entities unless you explicit this (using an “Include” statement) Lazy Loading means that entities will be automatically loaded when you first access collection or navigation property, and that will happen transparently, as though they were always loaded with parent object. Using “include” is loading … Read more

Spring, Hibernate, Blob lazy loading

I’m confused. Emmanuel Bernard wrote in ANN-418 that @Lob are lazy by default (i.e. you don’t even need to use the @Basic(fetch = FetchType.LAZY) annotation). Some users report that lazy loading of a @Lob doesn’t work with all drivers/database. Some users report that it works when using bytecode instrumentation (javassit? cglib?). But I can’t find … Read more

EXCEPTION: Uncaught (in promise): Error: Cannot find module ‘app/home/home.module’

For Angular 8 and 9, the lazy load declaration changed. Since Angular 8 introduced the new recommended module loading method, previously the default method of lazy loading modules was to specify a string path to a module: { path: ‘auth’, loadChildren: ‘src/app/auth/auth.module#AuthModule’ } The method of importing modules has changed to dynamic import. The dynamic … Read more

tech