lib/catissue/database.rb
def create_executor
      # Augment the user-defined application properties with Hibernate properties.
      props = access_properties
      hprops = Java::edu.wustl.common.hibernate.HibernateUtil.configuration.properties.to_hash rescue nil
      if hprops then
        props[:database_user] ||= hprops['connection.username']
        props[:database_password] ||= hprops['connection.password']
        if not props.has_key?(:database_name) and not props.has_key?(:database_port) and hprops.has_key?('connection.url') then
          props[:database_url] ||= hprops['connection.url']
        end
        props[:database_driver_class] ||= hprops['connection.driver_class']
      end
      CaRuby::SQLExecutor.new(props)
    end
def create_executor
      # Augment the user-defined application properties with Hibernate properties.
      props = access_properties
      hprops = Java::edu.wustl.common.hibernate.HibernateUtil.configuration.properties.to_hash rescue nil
      if hprops then
        props[:database_user] ||= hprops['connection.username']
        props[:database_password] ||= hprops['connection.password']
        if not props.has_key?(:database_name) and not props.has_key?(:database_port) and hprops.has_key?('connection.url') then
          props[:database_url] ||= hprops['connection.url']
        end
        props[:database_driver_class] ||= hprops['connection.driver_class']
      end
      CaRuby::SQLExecutor.new(props)
    end
def create_executor # Augment the user-defined application properties with Hibernate properties. props = access_properties hprops = Java :: edu . wustl . common . hibernate . HibernateUtil . configuration . properties . to_hash rescue nil if hprops then props [ :database_user ] ||= hprops [ 'connection.username' ] props [ :database_password ] ||= hprops [ 'connection.password' ] if not props . has_key? ( :database_name ) and not props . has_key? ( :database_port ) and hprops . has_key? ( 'connection.url' ) then props [ :database_url ] ||= hprops [ 'connection.url' ] end props [ :database_driver_class ] ||= hprops [ 'connection.driver_class' ] end CaRuby :: SQLExecutor . new ( props ) end
@quirk caTissue The database connection properties cannot be inferred from the caTissue
   +HibernateUtil+ class. The class is found, but class load results in the following error:
     NameError: cannot initialize Java class edu.wustl.common.hibernate.HibernateUtil
   This error is probably due to the arcane caTissue static initializer dependencies.

 return (see #executor)
@quirk caTissue The database connection properties cannot be inferred from the caTissue + HibernateUtil + class . The class is found but class load results in the following error : NameError : cannot initialize Java class edu . wustl . common . hibernate . HibernateUtil This error is probably due to the arcane caTissue static initializer dependencies .