Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
A JRuby/Hibernate integration with Datamapper
Ruby JavaScript Java
branch: adapter_spec

This branch is 110 commits ahead of headius:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
demo
lib
spec
src/main/java/de/saumya/jibernate
.gitignore
README.markdown
Rakefile
eventlog.rb
pom-parent.xml
pom.xml

README.markdown

Jibernate/Hibernate module for DataMapper

You have to:

install maven3 (http://www.maven.apache.org/download.html)

setup the gems

mvn clean gem:initialize

run the eventlog - list

mvn ruby:jruby -Dargs="eventlog.rb list"

run the eventlog - store

mvn ruby:jruby -Dargs="eventlog.rb store something"

run the eventlog - store with rollback

mvn ruby:jruby -Dargs="eventlog.rb store_rollback something"

Howtos:

how to list rake tasks (please note the jruby.rake.args part(var name))

mvn ruby:jruby -Dargs="-S rake -T"

how to run specs?

  • AbstractAdapter specs:

    mvn ruby:jruby -e -Djruby.verbose=true -Dargs="-S rake spec:adapter"
    

    or mvn test -e -Djruby.verbose=true -Padapter

  • dm-core specs:

    mvn ruby:jruby -e -Djruby.verbose=true -Dargs="-S rake spec:dm"
    

    or mvn test -e -Djruby.verbose=true -Pdm

  • transient specs:

    mvn ruby:jruby -e -Djruby.verbose=true -Dargs="-S rake spec:transient"
    

    or mvn test -e -Djruby.verbose=true -Ptransient

you can switch the jruby version by adding to the above commands

    -Djruby.version=1.5.3

Rails 2.3.5 demo

start the server with mvn rails2:server and point your browser to http://localhost:3000/users or http://localhost:3000/maven.html

Something went wrong with that request. Please try again.