wood burning stoves 2.0*
The moose likes Groovy and the fly likes One to many and one to one, same enity same class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Languages » Groovy
Bookmark "One to many and one to one, same enity same class" Watch "One to many and one to one, same enity same class" New topic
Author

One to many and one to one, same enity same class

Bob Smitheeeee
Greenhorn

Joined: Jul 26, 2012
Posts: 5
Using Grails, what's the correct way to map this?





Bob Smitheeeee
Greenhorn

Joined: Jul 26, 2012
Posts: 5
Update: the above does work, I had an error in bootstrap.groovy that was keeping the schema from being generated in thed DB. I have to say that groovy error messages are pretty sparse and hard to decipher. Seems like dynamic languages in general have less helpful error reporting imo. Although I've only used jython much before groovy.
 
GeeCON Prague 2014
 
subject: One to many and one to one, same enity same class