Skip to content

Instantly share code, notes, and snippets.

View maven-java-version.xml
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>
@juanfezero
juanfezero / eclipse.ini
Created Sep 6, 2016
Eclipse best .ini configuration
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
@juanfezero
juanfezero / databaseCharToBooleanMappingHibernate.java
Last active Oct 26, 2015
database column char to boolean hibernate - juanfezero -
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;
@juanfezero
juanfezero / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
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
@juanfezero
juanfezero / getStacktraceAndPrint.java
Last active Oct 26, 2015
get stacktrace and print - juanfezero -
View getStacktraceAndPrint.java
// ex is an exception (ExceptionUtils in commons.lang3)
Arrays.toString(ExceptionUtils.getStackFrames(ex))
@juanfezero
juanfezero / springSelectOptionsWithEnum
Last active Nov 19, 2015
spring select options with enum - juanfezero -
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
You can’t perform that action at this time.