Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.3.7
-
Fix Version/s: None
-
Component/s: Persistence
-
Labels:
-
Environment:STS
Description
I was trying to default sort a bidirectional one-to-many association but it keeps on failing
with error: java.sql.SQLSyntaxErrorException: ORA-00904: "QUESTIONCA3_"."DISPLAY_ORDER": invalid identifier,
I checked the db and DISPLAY_ORDER is there
My Domain classes are as follows
Class Section{
Integer displayOrder
static hasMany=[questionCategories:QuestionCategory]
static mapping=
}
Class QuestionCategory{
Integer displayOrder
static hasMany=[questions:Question]
static mapping=
{questions sort:'displayOrder'}}
Class Question
{ Integer displayOrder }I can work this around using SortedSet approach, but unfortunately i cannot use it
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits