Skip to content

Commit

Permalink
Added TODO,README, some cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Gega (pietia) committed Feb 14, 2010
1 parent 31b2f16 commit d1082fe
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 116 deletions.
4 changes: 3 additions & 1 deletion readme.txt → README.markdown
Expand Up @@ -9,6 +9,8 @@ mvn3 ruby:jruby -Djruby.args="eventlog.rb list"
# run the eventlog - store
mvn3 ruby:jruby -Djruby.args="eventlog.rb store something"

# rake tasks (please note the jruby.rake.args part(var name))
mvn3 ruby:rake -Dverbose=true -Djruby.rake.args="--trace -T"

# maybe you need to replace ther respective line in jibernate.script with
SET WRITE_DELAY 0 MILLIS

Empty file added TODO.markdown
Empty file.
20 changes: 13 additions & 7 deletions hibernate.rb
Expand Up @@ -4,15 +4,17 @@
require 'dialects'

module Hibernate
import org.hibernate.cfg.Configuration
import javax.xml.parsers.DocumentBuilderFactory
import org.xml.sax.InputSource
# XXX http://jira.codehaus.org/browse/JRUBY-3538
java_import org.hibernate.cfg.Configuration
# XXX not needed for now
# import javax.xml.parsers.DocumentBuilderFactory
# import org.xml.sax.InputSource
# DOCUMENT_BUILDER_FACTORY = DocumentBuilderFactory.new_instance
# DOCUMENT_BUILDER_FACTORY.validating = false
# DOCUMENT_BUILDER_FACTORY.expand_entity_references = false
# DOCUMENT_BUILDER = DOCUMENT_BUILDER_FACTORY.new_document_builder
JClass = java.lang.Class
JVoid = java.lang.Void::TYPE
DOCUMENT_BUILDER_FACTORY = DocumentBuilderFactory.new_instance
DOCUMENT_BUILDER_FACTORY.validating = false
DOCUMENT_BUILDER_FACTORY.expand_entity_references = false
DOCUMENT_BUILDER = DOCUMENT_BUILDER_FACTORY.new_document_builder

def self.dialect=(dialect)
config.set_property "hibernate.dialect", dialect
Expand All @@ -37,6 +39,10 @@ def self.connection_username=(username)
def self.connection_password=(password)
config.set_property "hibernate.connection.password", password
end

def self.connection_pool_size=(size)
config.set_property "hibernate.connection.pool_size", size
end

class PropertyShim
def initialize(config)
Expand Down
65 changes: 0 additions & 65 deletions hibernate_config.rb

This file was deleted.

43 changes: 0 additions & 43 deletions rails_underground.cfg.xml

This file was deleted.

0 comments on commit d1082fe

Please sign in to comment.