Skip to content

Instantly share code, notes, and snippets.

View ganeshs's full-sized avatar

Ganesh Subramanian ganeshs

  • Bangalore, India
View GitHub Profile
@ganeshs
ganeshs / BulkHandler.java
Created February 12, 2020 17:28
Bulk handler
public static class BulkHandler implements Handler, Runnable {
private BlockingQueue<Record> queue = new LinkedBlockingQueue<>(1000);
public BulkHandler() {
new Thread(this).start();
}
@Override
public Status process(Record record) {
@ganeshs
ganeshs / CamelCaseSessionCustomizer.java
Last active January 30, 2020 06:30
Eclipselink CamelCase Naming Strategy
/**
*
*/
package com.simplexlogistics.core.domain;
import java.sql.SQLException;
import org.eclipse.persistence.config.SessionCustomizer;
import org.eclipse.persistence.descriptors.ClassDescriptor;
import org.eclipse.persistence.internal.helper.DatabaseField;