package me.ianibbo.authcommon

import me.ianibbo.authcommon.*;

class AuthCommonAffiliation {

  AuthCommonUser user
  AuthCommonOrg org
  // RefdataValue status;  // 0=Pending, 1=Approved, 2=Rejected
  // RefdataValue role  // 0=unspecified, 5=admin

  static mapping = {
    table name:'auth_common_affiliation', schema:'auth', catalog:'auth'
  }

  static constraints = {
  }
}

package me.ianibbo.authcommon

import me.ianibbo.authcommon.*;

class AuthCommonAffiliation {

  AuthCommonUser user
  AuthCommonOrganisation org
  // RefdataValue status;  // 0=Pending, 1=Approved, 2=Rejected
  // RefdataValue role  // 0=unspecified, 5=admin

  static mapping = {
    table name:'auth_common_affiliation', schema:'auth', catalog:'auth'
  }

  static constraints = {
  }
}

Correct class ref to org
Correct class ref to org
