Package com.example.customconfig

Source Code of com.example.customconfig.CustomClassicConfigurationFactoryImpl

package com.example.customconfig;

import com.example.customconfig.auction.Item;
import liquibase.ext.hibernate.customfactory.CustomClassicConfigurationFactory;
import liquibase.ext.hibernate.database.HibernateDatabase;
import liquibase.ext.hibernate.database.connection.HibernateConnection;
import org.hibernate.cfg.Configuration;

public class CustomClassicConfigurationFactoryImpl implements CustomClassicConfigurationFactory {

    @Override
    public Configuration getConfiguration(HibernateDatabase hibernateDatabase, HibernateConnection connection) {
        Configuration config = new Configuration();
        config.addAnnotatedClass(Item.class);
        return config;
    }

}
TOP

Related Classes of com.example.customconfig.CustomClassicConfigurationFactoryImpl

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.