Details
-
Type:
Sub-task
-
Status:
Closed
-
Priority:
Critical
-
Resolution: Not A Bug
-
Affects Version/s: 1.1-beta2
-
Fix Version/s: 1.1-RC1
-
Component/s: None
-
Labels:None
-
Environment:Windows XP
Description
Calling Campaign.list() on the following domain class under 1.04 worked fine, however, in 1.1-beta2 it returns a list of nulls.
class Campaign {
Long id
String key
String name
String description
static mapping = {
table 'ca_campaign'
version false
columns
id generator:'sequence', params:[sequence:'ca_campaign_campaign_id_seq']
}
}
Note that your mapping is incorrect. You should not have multiple "id" entries. The mapping should be:
With this change, I cannot reproduce your problem with beta3.