Skip to content

In 1.6, any field in a mapped object named "language" will fail to map if it is a type other than String [DATAMONGO-1053] #1974

Closed
@spring-projects-issues

Description

@spring-projects-issues

Andrew opened DATAMONGO-1053 and commented

In 1.6, there is now a restriction that a field named "language" must be a String. So, in 1.5, the following will map but will not map in 1.6:

package com.instantly.pipeline.engine.model;

import javax.persistence.Id;

public class Foobar {

    @Id
    String id;
    
    private Number language;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Number getLanguage() {
        return language;
    }

    public void setLanguage(Number language) {
        this.language = language;
    }
}

Affects: 1.6 M1 (Evans)

Issue Links:

  • DATAMONGO-1049 Reserved field name 'language' causes trouble
    ("depends on")

Referenced from: pull request #228

Backported to: 1.6.1 (Evans SR1)

1 votes, 3 watchers

Metadata

Metadata

Labels

in: mappingMapping and conversion infrastructuretype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions