Hi!
We are having this Java application that uses Hibernate to store and persist the data model. We now want to create a second application that is much like an admin tool for this data. In order to have a "safe" access to the database, we ideally want to use the same interface (i.e. Hibernate) for the second application. On the other hand we also would like to try out Ruby on Rails, as it seems a valuable framework for the admin application we want to create.
As far as I have seen RoR and Hibernate do not work well together. RoR uses it's own persistence mechanism, ActiveRecords and does not support Hibernate. As said earlier we do not want to use two different interfaces for the database access and would like to stick to Hibernate. What I was thinking now is the following: Would it be possible to run RoR with the JRuby interpreter and access the Hibernate persisted Java classes with JRuby? The data model would then be based on the Java classes. Is it possible to change the data model from ActiveRecords to these Java classes in RoR?
thanks, iS