Skip to content

Instantly share code, notes, and snippets.

public class InstantAwareGenerator extends JavaGenerator {
@Override
protected String getJavaTypeReference(Database db, DataTypeDefinition type) {
if (type.getUserType().equals("java.time.Instant")) {
// TODO Not very type safe
return "new org.jooq.impl.DefaultDataType<Object>(org.jooq.SQLDialect.ORACLE12C, Object.class, \"timestamp with time zone\")";
} else {
return super.getJavaTypeReference(db, type);
}
public class OffsetAwareGenerator extends JavaGenerator {
@Override
protected String getJavaTypeReference(Database db, DataTypeDefinition type) {
if (type.getUserType().equals("java.time.OffsetDateTime")) {
// TODO Not very type safe, extremely hacky
return "new org.jooq.impl.DefaultDataType<oracle.sql.TIMESTAMPTZ>(org.jooq.SQLDialect.ORACLE12C, oracle.sql.TIMESTAMPTZ.class, \"timestamp with time zone\")";
} else {
return super.getJavaTypeReference(db, type);
}
@0x6e6562
0x6e6562 / build_output.log
Last active March 16, 2016 22:59
Solaris Freeswitch build issue
$ CFLAGS="-m64" CXXFLAGS="-m64" ./configure
$ gmake
config.status: creating Makefile
config.status: creating include/apr.h
config.status: creating build/apr_rules.mk
config.status: creating build/pkg/pkginfo
config.status: creating apr-1-config
config.status: WARNING: 'apr-config.in' seems to ignore the --datarootdir setting
config.status: creating apr.pc
config.status: creating test/Makefile

Keybase proof

I hereby claim:

  • I am 0x6e6562 on github.
  • I am 0x6e6562 (https://keybase.io/0x6e6562) on keybase.
  • I have a public key ASDR4r-qlycciJO2qUgs5g7Db2Izgna3ubAL0F23fQSGYgo

To claim this, I am signing this object:

import React, { Component, PropTypes } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
TouchableOpacity
} from 'react-native';
import { createStore, combineReducers, applyMiddleware} from 'redux';