Skip to content

Instantly share code, notes, and snippets.

View Manevolent's full-sized avatar
💭
Memes

Manevolent Manevolent

💭
Memes
View GitHub Profile
package com.github.manevolent.jbot.database;
import com.google.common.collect.MapMaker;
import org.hibernate.*;
import org.hibernate.boot.model.naming.*;
import org.hibernate.cfg.Configuration;
import org.hibernate.engine.jdbc.env.spi.JdbcEnvironment;
import org.hibernate.type.Type;
import javax.persistence.EntityManager;
public class LiveLoginHelper {
protected static class FailureReason extends Exception {
private final String reason;
private final String code;
protected FailureReason(String reason, String code) {
this.reason = reason;
this.code = code;
}