This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Languages » Groovy
Reply 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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: One to many and one to one, same enity same class
 
Similar Threads
toString with Character Array
jsp&java mail :How to send email to multiple users ?
Cascading problem
Struts2 have issue to display JPA proxy objects
Some questions about Cade and Roberts' case study