Skip to content

Instantly share code, notes, and snippets.

View dileeph's full-sized avatar

Dileep Hareendran dileeph

View GitHub Profile
@dileeph
dileeph / gist:786f097276a451e6142a
Created January 2, 2016 05:10
Github commit steps
Committing project to own repository for first time
//Configure username, email
git config --global user.name "userx"
git config --global user.email "[email protected]"
//Go to the folder where code is to be committed first time into repo (assuming repo //exists and no code present)
git init
//First thing will be to add the test-service project folder with all subfolders and //files into local repository.
@dileeph
dileeph / gist:3060105
Created July 6, 2012 13:18
JooQ - groupBy with function issue - ORA000979
public static Field<String> toChar(Field<Timestamp> timestampField,
String format) {
return Factory.function("to_char", String.class, timestampField,
Factory.val(format));
}
@Test
public void testToChar() {
@dileeph
dileeph / jooq-batch-insert-list
Created June 28, 2012 14:57
JOOQ - Batch inserting a list of records (not shown in JOOQ tutorial)
@Test
public void testBatch(){
/*Preparing sample data. */
MzRolesRecord admin = new MzRolesRecord();
admin.setCreatedDate(new Timestamp(System.currentTimeMillis()));
admin.setRoleDesc("Admin");
MzRolesRecord user = new MzRolesRecord();
user.setCreatedDate(new Timestamp(System.currentTimeMillis()));