Register / Login
Win a copy of
97 Things Every Java Programmer Should Know
this week in the
Java in General
this forum made possible by our volunteer staff, including ...
Stephan van Hulst
Object Relational Mapping
Constructing a JPQLquery for entity class containing composite primary keys
posted 11 years ago
I would like to construct one query in JPAQL .Below is the exact scenario
My table is like
ObjectId(PK) Type(PK) location adresss
1 0 xxx yyyy
1 1 xxxx yyyyyyy
1 2 sdae wwwww
In the above table objectId and Type are primary keys.So i created the entity called Object with objectId and type as the embedded primary key...
Another table will be like below
ObjectId (PK) Level
In this table objectId is primary key and the level is an mapped as an enum (0-High,1-Very high)
I would like to get the output as
1 0 xxx yyyy 1 xxxx yyyyyyy 2 sdae wwwww High
Could any one assist me in getting this one
Where all the women are strong, all the men are good looking and all the tiny ads are above average:
Devious Experiments for a Truly Passive Greenhouse!
Boost this thread!
series of updates
entity bean for a table with No Primary key : Please Help,,,, URGENT
REPEATABLE READ Vs READ COMMITTED
Hit ORA-00060: deadlock detected while waiting