title: GenerateEntities from Database using NetBeans JPA extra "entityPK" classes?
body: <p>So i'm trying to generate entities directly from my database, using <em>netbeans</em> but
  Im having a hard time here using the option <code>New -&gt; "Entity Class from Database"</code>.</p>
  
  <p>For each entity that has a foreign key associated with it. it Creates an extra entity called "<code>EntityPK</code>"</p>
  
  <p>For example, I have a "<code>Patient</code>" entity that has an ID and "<code>CampusID</code>" from the entity "<code>Campus</code>"</p>
  
  <p>When I use the generator, it automatically generates a <code>Patient</code> Entity, and also a <code>PatientPK</code> Entity, that stores both ids.</p>
  
  <p>Is that normal? I'm getting a lot of errors when trying to use <code>EntityManager</code>, So i'm thinking that may be the problem.</p>