Skip to content

Commit b0bc704

Browse files
committed
Added name identifier for the Score entity AtlasOfLivingAustralia/fieldcapture#3368
1 parent e957a95 commit b0bc704

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

grails-app/domain/au/org/ala/ecodata/Score.groovy

+6-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ class Score {
1313
/** The label for this score when displayed */
1414
String label
1515

16+
/** Unique human name for this score to be used as a more descriptive alternative to the scoreId in forms/configuration. Must be unique if present */
17+
String name
18+
1619
/** A more detailed description of the score and how it should be interpreted */
1720
String description
1821

@@ -53,6 +56,7 @@ class Score {
5356
tags: nullable:true
5457
label unique: true
5558
scoreId unique: true
59+
name nullable: true, unique: true
5660
}
5761

5862
static mapping = {
@@ -88,7 +92,8 @@ class Score {
8892
entity:entity,
8993
externalId:externalId,
9094
entityTypes:entityTypes,
91-
tags:tags
95+
tags:tags,
96+
name:name
9297
]
9398
if (includeConfig) {
9499
scoreMap.configuration = configuration

0 commit comments

Comments
 (0)