The JPA Processor fills the gap between Olingo V4 and the database, by providing a mapping between JPA metadata and OData metadata, generating queries and supporting the entity manipulations.
Apache License 2.0
123
stars
76
forks
source link
Computed entity attribute without real table column #135
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 ?