Project

General

Profile

« Previous | Next » 

Revision 5a9cce4d

Added by Andreas Müller almost 2 years ago

cleanup

View differences:

cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/hibernate/HibernateConfiguration.java
17 17
/**
18 18
 * @author a.mueller
19 19
 * @since 03.08.2017
20
 *
21 20
 */
22 21
public class HibernateConfiguration implements Serializable{
23 22

  
24 23
    private static final long serialVersionUID = -894395918847594447L;
25 24

  
25
    //properties
26 26
    public final static String SHOW_SQL = "hibernate.show_sql";
27 27

  
28 28
    public final static String FORMAT_SQL = "hibernate.format_sql";
......
38 38
    public static final boolean FORMAT_SQL_DEFAULT = false;
39 39
    public static final boolean REGISTER_SEARCH_DEFAULT = false;
40 40
    public static final boolean REGISTER_ENVERS_DEFAULT = true;
41

  
42 41
    public static final Class<? extends RegionFactory> CACHE_PROVIDER_DEFAULT = NoCachingRegionFactory.class;
43 42

  
44
    /**
45
     * @return
46
     */
47 43
    public static HibernateConfiguration NewDefaultInstance() {
48 44
        HibernateConfiguration result = NewInstance(SHOW_SQL_DEFAULT, FORMAT_SQL_DEFAULT,
49 45
                REGISTER_SEARCH_DEFAULT, REGISTER_ENVERS_DEFAULT, CACHE_PROVIDER_DEFAULT);

Also available in: Unified diff