Good evening. When I attempt to create jpa entities using a database connection I am getting some exceptions. Something about id non-existent. I suspect it has something to do with the fact that some of the tables have no primary key. Because when I go through each entity and give it a primary key, the error clears up. How can I create entities on tables that have no primary keys? I am using websphere integration developer (wid) btw.
All entities have an Id, that is how they work - or more accurately how the specification states it. If there are tables in the database you want to map to entities and the tables don't have a primary key there are several options availble to you.
Should be rather easy to find information about how to do alternative 2 and 3 via a search for JPA and CompositeKey.
Good Luck