Example usage for org.hibernate.jpa AvailableSettings XML_FILE_NAMES

List of usage examples for org.hibernate.jpa AvailableSettings XML_FILE_NAMES

Introduction

In this page you can find the example usage for org.hibernate.jpa AvailableSettings XML_FILE_NAMES.

Prototype

String XML_FILE_NAMES

To view the source code for org.hibernate.jpa AvailableSettings XML_FILE_NAMES.

Click Source Link

Document

List of classes names Internal use only

Usage

From source file:com.lg.hibernate.guide.test.BaseEntityManagerFunctionalTestCase.java

License:LGPL

protected Map getConfig() {
    Map<Object, Object> config = Environment.getProperties();
    ArrayList<Class> classes = new ArrayList<Class>();

    classes.addAll(Arrays.asList(getAnnotatedClasses()));
    config.put(AvailableSettings.LOADED_CLASSES, classes);
    for (Map.Entry<Class, String> entry : getCachedClasses().entrySet()) {
        config.put(AvailableSettings.CLASS_CACHE_PREFIX + "." + entry.getKey().getName(), entry.getValue());
    }//from   w  ww .  jav  a  2  s . c o  m
    for (Map.Entry<String, String> entry : getCachedCollections().entrySet()) {
        config.put(AvailableSettings.COLLECTION_CACHE_PREFIX + "." + entry.getKey(), entry.getValue());
    }
    if (getEjb3DD().length > 0) {
        ArrayList<String> dds = new ArrayList<String>();
        dds.addAll(Arrays.asList(getEjb3DD()));
        config.put(AvailableSettings.XML_FILE_NAMES, dds);
    }

    addConfigOptions(config);
    return config;
}