grails - Name for this M:M pattern -


in grails there 2 ways m:m associations. firstly, have collection on both sides. gorm figure out intermediately table , encapsulated away.

the second way have 3 objects, third object representing connecting table. approach means more code means can add columns actual relationship table easily.

is there name second approach?

i'm not aware of names these different approaches. database point-of-view aren't different approaches, because in both cases have n:n relationship join table (this refer "the intermediately [sic] table"), in 1 case have additional columns (to foreign keys) in join table

at gorm level, approaches more different because in 1 case have domain class (mapped join table), again, i'm not aware of specifics names these different approaches.


Comments

Popular posts from this blog

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -