Skip to content

Computed entity attribute without real table column #135

@AntonIV8

Description

@AntonIV8

Hello. I have simple table

LockKey: string (PK)
UserName: string
LockDate: Date

But the request looks like this:

SELECT PRIMARYKEY, UserName, LockDate, LockKey FROM public.____ WHERE (PRIMARYKEY = _____)

And get error, because primaryKey is not exist. But primary key must be like a calculating field, and work with real PK field "LockKey"

I try many JPA tricks, in particular variants of composite pk, but it doesn't work. Should entity attribute and column must be only hard ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions