• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Question on GORM

 
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Guys,

I'm considering to use Groovy for my project. I came across GORM and was just wondering if it is something just like JPA? Is it?
 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
GORM is a groovy layer on top of hibernate (not JPA), to put it simply. Grails uses Hibernate (by default) for it's ORM piece. GORM allows you to use the power of hibernate without a single XML file or annotation and it is really powerful. One of my favorite features is dynamic finders. For example, assume the following class:



The following methods (and the underlying HQL) are automatically available to you.

User.findByUsername()
User.findByFirstNameAndLastName()
User.findByPasswordAndLastName()

And any similar combination. There's so much more to GORM than this but you get the idea. GORM is generally used within Grails but I have heard of folks using it outside of Grails. Just hit google for information regarding this. By the way, there is a JPA Plugin for Grails that is basicallly GORM but using JPA (with hibernate as the implementation). I'm not sure I see the benefit but it is there if you want it.
 
Joe San
Ranch Hand
Posts: 10198
3
Mac PPC Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply. That sounds more interesting. Might be I'd explore on it more.
 
Trust God, but always tether your camel... to this tiny ad.
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic