com.formkiq.server.dao.JsonPostgreSQL9Dialect Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of formkiq-server Show documentation
Show all versions of formkiq-server Show documentation
Server-side integration for the FormKiQ ios application
package com.formkiq.server.dao;
import java.sql.Types;
import org.hibernate.dialect.PostgreSQL9Dialect;
/**
* Wrap default PostgreSQL9Dialect with 'json' type.
*
* @author timfulmer
*/
public class JsonPostgreSQL9Dialect extends PostgreSQL9Dialect {
/**
* default constructor.
*/
public JsonPostgreSQL9Dialect() {
super();
// this.registerColumnType(Types.JAVA_OBJECT, "json");
this.registerColumnType(Types.JAVA_OBJECT, "jsonb");
}
}