neilabdev opened a new issue, #14621:
URL: https://github.com/apache/grails-core/issues/14621
Thanks for the great work! Just a hope for a future enhancement. But
basically, it would be nice to be able to add conditions to a joinTable, based
on instance values or hard coded values on column names. I've used it in rails
several times, and my projects where I use Grails mostly, the ability is sorely
missed. See example below:
```groovy
class Employee {
static hasMany = [projects: Project]
static mapping = {
projects joinTable: [name: 'EMP_PROJ',
column: 'PROJECT_ID',
key: 'EMPLOYEE_ID', where: {->
[type_column: this.some_discriminator_column_of_this_instance]
}
}
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]