public void printUserProfies ( ) { EntityScanner < UserProfileModel > scanner = userProfileDao . getScanner ( ) ; scanner . initialize ( ) ; try { for ( UserProfileModel entity : scanner ) { System . out . println ( entity . toString ( ) ) ; } } finally { // scanners need to be closed. scanner . close ( ) ; } }
Print all user profiles .