Thank you Phil - yes, that was my point -- ActiveRecord -can- be easier to use than persistence annotations because with dynamic typing, there is no need to define the POJO at all - it gets created on the fly. You get finder methods automatically - I can call model.findByEmail(), model.findByAddress() etc. where only the fact that "email" and "address" are database columns was revealed to the framework. In Java with static typing we don't get dynamic methods like this - but of course that has other implications - static typing gives the user many other advantages. (In the NetBeans support for Ruby and Rails I added built-in knowledge about active record such that it could help you with this stuff even though it can't be done in the general metaprogramming way.)
And yes this comment is specific to Java -- Groovy is dynamically typed, and I believe their frameworks do this too because I recently saw that NetBeans' Groovy support now helps in code completion with this stuff: http://blogs.sun.com/phejl/entry/groovy_and_grails_in_netbeans -- Tor On Jul 23, 5:24 pm, phil swenson <[email protected]> wrote: > ya, but you could use active record on JRuby too. > > Think Tor's point was that "Java" frameworks don't have anything as > nice as Active Record. Groovy != Java > > On Jul 23, 2:42 pm, Mac <[email protected]> wrote: > > > In the listener feedback episode, Someone (Carl or Tor?) that said > > that Java platform doesn't > > have anything as nice as active record. > > > GORM seems pretty good to me. :) It does all the dynamic behavior that > > was > > being listed in the episode. And as of Grails 1.1, you can use GORM > > standalone > > outside of Grails. > > >http://www.grails.org/GORM --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "The Java Posse" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/javaposse?hl=en -~----------~----~----~----~------~----~------~--~---
