{"repo":"LiveRamp/jack","free":true,"listed":false,"github":"https://github.com/LiveRamp/jack","clone":"git clone https://github.com/LiveRamp/jack.git","description":"A set of scripts for generating fully functional Java database models from Ruby's ActiveRecord models and migrations.","language":"Java","stars":73,"topics":["orm","activerecord-model"],"license":null,"category":"databases-storage","readme_excerpt":"Jack Do you use Ruby/Rails and Java in your company? We do. And we're sick and tired of maintaining two different sets of schemas, models, and whatnot! To that end, we've created Jack ( J ava AC tive record (+ K )). The project consists of: - a scheme for defining and managing multiple Rails projects that contribute models - a Ruby parser for schema.rb and ActiveRecord models that generates Java code - a Java library that provides model-oriented database access and database-wide query on top of standard database connections Project Organization A Jack project consists of two things: 1. The project definition file 1. One or more Rails project Project Definition File The project definition file is a YAML file that tells Jack where to find your Rails projects and how to generate code. Here's an annotated example: Rails Projects Jack supports generating code for an arbitrary number of inter-related Rails 3 projects. If you only have one Rails project, then things are easy - just configure your project.yml appropriately. If you have more than one project, here's the setup we suggest. (We use this ourselves.) /all my databases /project.yml /rails project 1 /rails project 2 /ruby project that uses rails project 2 /include/rails project 2 # <= svn external to /all my databases/rails project 2 Running the Generator Running the Jack generator is easy. From a fresh clone, do the following: Then, change directories to wherever your project.yml lives and run: Assuming everything is config","default_branch":null,"files":null,"tree":[],"storefront":"/r/LiveRamp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/LiveRamp/jack/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}