I have the following table:
create table scheduled_tasks (
task_name varchar(100),
task_instance varchar(100),
.
.
.
last_success DATETIME,
last_failure DATETIME,
last_heartbeat DATETIME,
version numeric(19,0),
PRIMARY KEY (task_name, task_instance)
);
As you can see the primary key is two strings, they also can be anything so there is no way to create a valid reference table to embed into the the model. Is there any other way to define this composite key in JPA?