Cheatography
                https://cheatography.com
            
        
        
    
                   
                            
    
                    Shortcuts and explanation for Code Templates
                    
                 
                    
        
        
            
    
        
                                    This is a draft cheat sheet. It is a work in progress and is not finished yet.
                    
        
                
        
            
                                
            
                
                                                | JSP Form
                        
                                    
                        | dfnfi : Form Input with label and error tooltipdfnfta : Form Textarea with label and error tooltip
 dfnfs : Form Select with label and error tooltip
 dfntts : Defines tooltips script
 dfncb : Form checkbox spring tag
 dfncbs : Form checkboxes spring tag
 dfnfr : Form radio buttons spring tag
 |  Base Controller
                        
                                    
                        | dfnpde – Defines editor for Date type conversiondfnpe – Defines editor for type conversion
 dfnple – Defines editor for List type conversion
 dfnpsn – Defines editor for empty string to null
 |  File Templates
                        
                                    
                        | DFN EntityDFN Search Model
 DFN DAO
 DFN Service
 DFN Validator
 DFN Controller
 DFN Form Page
 DFN Search Page
 DFN Cron Job
 DFN Custom Tag
 |  |  | JSP Search
                        
                                    
                        | dfndc : Display Column Tagdfnsi : Search input filter with label
 dfnss : Search select menu filter with label
 |  JavaScript
                        
                                    
                        | dfnjr : Jquery ready function |  Validator
                        
                                    
                        | dfnves – Validates empty stringdfnvnn – Validates field not null
 |  Entity
                        
                                    
                        | dfncu – Generates audituble fields, setter, getterdfnmtm – Declare a many to many relation
 dfnmto – Declares a many to one relation
 |  DAO
                        
                                    
                        | dfnpne – Put not empty field to search criteriadfnpnn – Put not null field to search criteria
 dfnpo – Defines Property Order for sorting
 |  |  | Java
                        
                                    
                        | dfncnn – Checks if the collection is not emptyiter – iterates Iterable
 inn – Inserts “if not null” statement
 ifn – Inserts “if null” statement
 lazy – Performs lazy initialization
 fori – creates iteration loop
 itar – iterates elements of array
 itco – iterates elements of java.util.Collection
 itit – iterates java.util.Iterator
 itli – iterates elements of java.util.List
 dfnld – Performs logging with debug message
 dfnli – Performs logging with info message
 dfnlj – Declares logger in the class
 |  Search Model
                        
                                    
                        | dfnsfl – Declares search field of type longdfnsfs – Declares search field of type string
 |  SQL
                        
                                    
                        | dfnct – Create New Table with auditable fieldsdfnip – Inserts permissions for security
 |  Surround With
                        
                                    
                        | DFNCIF – Surround with c:if tagsDFNST – Surround with spring security tags
 |  |