I have 2 legacy tables:
CREATE TABLE A (
ID NUMBER PRIMARY KEY ,
DATA NUMBER
)
CREATE TABLE A_CONF (
A_ID NUMBER, // FK to A
INFO VARCHAR2(256)
)
Creating the JPA entity for A
is straightforward. Yet, what can I do retrieve the multiple INFO
fields that can be associated to an instance of A
since there is no PK in A_CONF
and therefore cannot create an entity for it?
Thanks for helping.