View maven-java-version.xml
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
</properties>
View eclipse.ini
-startup
plugins/org.eclipse.equinox.launcher_1.3.100.v20150511-1540.jar
--launcher.library
plugins/org.eclipse.equinox.launcher.win32.win32.x86_64_1.1.300.v20150602-1417
-product
org.springsource.sts.ide
--launcher.defaultAction
openFile
--launcher.XXMaxPermSize
256M
View databaseCharToBooleanMappingHibernate.java
//if ADMIN database column contains 'yes' then admin = true
//otherwise admin = false
@Column(name = "ADMIN", columnDefinition = "char(3)")
@Type(type = "yes_no")
@NotEmpty
private boolean admin;
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
View getStacktraceAndPrint.java
// ex is an exception (ExceptionUtils in commons.lang3)
Arrays.toString(ExceptionUtils.getStackFrames(ex))
View springSelectOptionsWithEnum
<!--
Enum example:
public enum Foo {
A("theA"), B("theB");
private String code;
private Foo(String code) {
this.code = code
}
//getter & setter's code