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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Up, up... Has anyone any suggestions, comments, experiences on the above topic? thanks, iS --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
On 17 Mar 2008, at 09:49, iS wrote:> > Up, up... > > Has anyone any suggestions, comments, experiences on > the above topic? >I know nothing about hibernate, but googling for jruby and hibernate found http://code.google.com/p/activehibernate/ Fred> thanks, iS > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
life will be difficult if you try to do use hibernate from rails .. since rails only plays nice with active record. take a look at jruby from sun. but i suspect it will be improbable or impossible to call java from ruby code. good luck. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---