    View Javadoc
    1   /*
    2    * Copyright (c) 2003
    3    * Information Desire GmbH
    4    * All rights reserved.
    5    */
    6   package com.infodesire.infobit.dao;
    7
    8   import net.sf.hibernate.cfg.Configuration;
    9   import net.sf.hibernate.HibernateException;
    10
    11  /***
    12   * factory for hibernate configuration to hide impl classes from outside world
    13   *
    14   * @author    konstantin
    15   * @created   August 11, 2003
    16   * @version   $Revision: 1.4 $
    17   */
    18  public class ConfigurationBuilder {
    19
    20      /***
    21       * provide hibernate configuration
    22       *
    23       * @return                        The Configuration value
    24       * @exception HibernateException  Description of Exception
    25       */
    26      public static Configuration getConfiguration() throws HibernateException {
    27          Configuration configuration = new Configuration();
    28          configuration.addClass(AclImpl.class);
    29          configuration.addClass(InfobitImpl.class);
    30          configuration.addClass(VersionImpl.class);
    31          configuration.addClass(CapabilityImpl.class);
    32          configuration.addClass(SecurityLink.class);
    33          configuration.addClass(ContentImpl.class);
    34
    35          return configuration;
    36      }
    37  }

This page was automatically generated by Maven