SLF4J (Simple Logging Facade for Java)
View more presentations from Guo Albert.
Delete line | ctrl + d |
Go to Method | ctrl + o |
Format Code | ctrl + shift + f |
Last Edit | ctrl + q |
Line Number | ctrl + l |
Move line(s) | alt + up/down |
Open Resource | ctrl + shift + r |
Open Proj Prop | alt + enter |
Open Type | ctrl + shift + t |
Run Java App | alt + shift + x, j |
Run JUnit | alt + shift + x, t |
Shortcut List | ctrl + shift + l |
Extract Method | alt + shift + m |
Extract Variable | alt + shift + l |
Rename | alt + shift + r |
Surround | alt + shift + z |
Go to Windows->Preferences->Java->Editor->Templates
To Activate templates press ctrl + space after command
For loop | for |
If statement | if |
Main Method | main |
System.out.println() | sysout |
System.err.println() | syserr |
While statement | while |
I'm using aggregate functions in my HQL, it looks like this
and the CaseTypeReportBean is as bellowing
But as I run this function, system report this error message: Unable to locate appropriate constructor on class [Persistence.vo.CaseTypeReportBean, Persistence] [select new CaseTypeReportBean(t1.caseType, count(t1)) from Persistence.vo.Cases t1 group by t1.caseType]
It results from the inappropriate data type for CaseTypeReportBean constructor
Hence, I modify the constructor just like this(from int to Int64), then it works now
Reference: https://www.hibernate.org/407.html#A22