Example usage for org.hibernate.cfg Configuration registerTypeOverride

List of usage examples for org.hibernate.cfg Configuration registerTypeOverride

Introduction

In this page you can find the example usage for org.hibernate.cfg Configuration registerTypeOverride.

Prototype

public Configuration registerTypeOverride(BasicType type) 

Source Link

Document

Allows registration of a type into the type registry.

Usage

From source file:com.shadows.liquiblq.data.hibernate.sets.base.BaseSet.java

public BaseSet() {
    Configuration configuration = new Configuration().configure();
    configuration.registerTypeOverride(new PostgresUUIDType());
    StandardServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder()
            .applySettings(configuration.getProperties()).build();
    factory = configuration.configure().buildSessionFactory(serviceRegistry);
}