grails - Issue with multiple hasMany relationships to the same domain class when using composite id -


I'm getting this exception: org.hibernate.MappingException: the number of columns in the collection foreign key mapping is incorrect : Cell.cellsOrig type: component [locationX, locationY]

  sorts the class room {integer space x; Integer position y; List cellongrass = [] list cells = [] static hamani = [cells aggregate: cells, cells: cell] static mapping = {id overall ['locationX', 'locationY'] cells include: 'joining cell_gate' cells Qualified: 'room_cells_orig'} static constants = {locationX (fable: incorrect) location Y (faucet: wrong) cells (faucet: wrong) cells (zero: incorrect)}}  

I think that I am involved in it is wrong, but without joining the room Any access to the cell's instinct or Selorig properties org.hibernate.HibernateException: will clear the index column for collection: Room.cells .

How can a suggestion for how to handle inserted IDs like this?

If you want to create a class from which many people join a class, Belongs to the one who will take care of it ....

  • Harjeet

Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -