grails « Delete « JPA Q&A





1. Grails: Cascade delete and Foreign Keys    stackoverflow.com

public class Room {
  static belongsTo = [hotel:Hotel]
  Source source
  long sourceid
  RoomType type
  float price
  float oldPrice
  Currency currency
  boolean isShown = ...

2. How to delete the item?    stackoverflow.com

Hi I have 2 domains in grails app, which is related and I got the problem when I tried to delete items.

Event {
     ...