Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Minor
-
Resolution: Unresolved
-
Affects Version/s: 1.1.1
-
Fix Version/s: None
-
Component/s: Documentation
-
Labels:None
-
Environment:n/a
Description
It appears that the documentation for discriminator has examples that are incorrect. Here is the URL to the documentation.
http://grails.org/doc/latest/ref/Database%20Mapping/discriminator.html
The example shows the following...
class Content {
...
}
class PodCast extends Content{
...
static mapping =
}
However it has been my experience that placing the static mapping in the super class is required or the default column name will be used. I think this is how the example should read in order to specify your own column name for the discriminator.
class Content {
...
static mapping =
}
class PodCast extends Content{
...
}
Thanks!
Assigning all documentation related issues to 1.2 final since they don't represent a change to the codebase