Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

jpaMappingContext cannot be initialized cause my property has upper case letters [DATAJPA-1160] #1498

spring-projects-issues opened this issue Aug 3, 2017 · 2 comments
status: declined type: bug


Copy link

spring-projects-issues commented Aug 3, 2017

Ethan Zhao opened DATAJPA-1160 and commented

Here is part of my model

@Table(name = "patient")
public class Patient extends AbstactPatient implements IPatient,CreatorEntity {

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(nullable = false)
    private Hospital hospital;

    @Column(columnDefinition = "text", updatable = true)
    public String name;

    @Column(length = 10)
    public HBsAgEnum HBsAg;

when i upgrade the spring data version from Ingalls-SR6 to Kay-RC2 (also the spring framework version from 4 to 5), my server cannot start cause the AbstractPersistentProperty use PropertyPath to fetch the type information, and in PropertyPath, line 86

    String propertyName = name.matches(ALL_UPPERCASE) ? name : 
    TypeInformation<?> propertyType = owningType.getProperty(propertyName);

    if (propertyType == null) {
        throw new PropertyReferenceException(propertyName, owningType, base);

so what should i do with the code? Change the property name to hBsAg?

Affects: 2.0 RC2 (Kay)

Copy link

spring-projects-issues commented Aug 3, 2017

Oliver Drotbohm commented

Yes. For general questions, please use StackOverflow

Copy link

spring-projects-issues commented May 22, 2019

Jens Schauder commented

Batch closing resolved issue without a fix version and a resolution indicating that there is nothing to release (Won't fix, Invalid ...)

@spring-projects-issues spring-projects-issues added type: bug status: declined labels Dec 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
status: declined type: bug
None yet

No branches or pull requests

2 participants