The Artima Developer Community
Sponsored Link

Java Buzz Forum
A Hibernate Code Generator

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Fred Grott

Posts: 4361
Nickname: shareme
Registered: Jan, 2003

Fred Grott is Lead Developer-CEO of ShareMe Technologies LLC -The Mobile Future
A Hibernate Code Generator Posted: Jan 24, 2008 11:07 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Fred Grott.
Original Post: A Hibernate Code Generator
Feed Title: ShareMe Technologies LLC-The Mobile Future
Feed URL: http://www.jroller.com/shareme/feed/entries/rss
Feed Description: A Weblog about Java programming and digital convergence on mobile devices in such areas as P2P and collaborative technology.
Latest Java Buzz Posts
Latest Java Buzz Posts by Fred Grott
Latest Posts From ShareMe Technologies LLC-The Mobile Future

Advertisement
What if I were to tell you folks that if you follow certain procedures and techniques that you could use the Grails framework as a part of a Hibernate/JPA code generator process? and still have the resulting model intuitive. The main issue is to get the direction of the ownership of the relationships right. Domain user case wise you are attempting to limit or reduce the amount of side trips.

For example, something as complex as a user registration and profile could be a series of stages. What is not apparent until you start digging is that those stages not only reduce the number of one-to-many and many-to-many complex relationships but also match up with the Domain Class and Controllers in Grails and Hibernate/JPA layers.

UML-wise because the domain classes and controller naming does not match naming of the user cases and etc you will not see it in the UML diagrams. For example, lets say we have a company and employees in our model.

What is the Controller to enter new employees into company records? Its a trick question as your views/actions do the action described but s not called that however. Thus, agile wise if you can reverse engineer the database tables for UML why spend time trying to work a UML model that is hard to understand why not just jump right into Grails GORM and hit it?

But it cannot be as simple as reducing cascading down to only one level and etc, right? But, what if it is? Do not take my word for it try it yourself! Think about it Grails as your modeling tool! Get it yet? Now, it does not have fancy drag and drop and etc as found in those UML stylized tools we are so use to but which is more effective? Better yet name one UML tool directly coupled to Hibernate/Spring like Grails..I rest my case.

Read: A Hibernate Code Generator

Topic: The Search is Over - Groovy & Grails Talk @ Vancouver Island Technology Park (Jan/23) Previous Topic   Next Topic Topic: 8 Tips for Grooms Guardians in Arranging Bengali Boubhat

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use