Win a copy of Escape Velocity: Better Metrics for Agile Teams this week in the Agile and Other Processes forum!

Nirenj George

Greenhorn
+ Follow
since Nov 01, 2011
Nirenj likes ...
Hibernate Oracle Java
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Nirenj George

Hi there,

I am new to Grails. There are 2 tables names 'Vessel' and 'Comment'. Each vessel records can have multiple comments posted by different users. When user saves any Vessel record along with any Comments, Vessel data must be saved to Vessel table and each Comment must be saved to Comment table with reference to record in Vessel table.

Now the problem is that once I call the save button, my app only inserts record into Vessel table and does not insert any records into Comment table. I have given one-to-many relationship.

Please advice whether I need to do any extra steps to make sure both tables get data inserted, or is there anything I am missing here. I am using Grails 1.3.7.

Thanks a lot in advance.





10 years ago