I have a situation where my DB tables are like below, I am wondering how to have JPA mappings for this kind of tables , espacially for the auction_param_values which do not have primary key ID
Table Name : auction with primary key as auction_id
Table Name : *auction_param* with primary key as auction_param_id
Table AUCTIO_PARAM
is used stores the details of parameters such as Start_Date
,End_Date
etc.
auction_param_id | auction_param_desc
1 | start date
2 | end_date
Table Name : auction_param_values
It stores the actual values of that parameters related to Auction
.
Table looks like:-
auction_id | auction_param_id | auction_param value |
1 | 2 | 2011-01-15 |
How will the entity class look for the auction_param_values
? is there any pointer on how we can design
the schema to support JPA (we are using Eclipselink as a provider).
If require I can provide more details.