Tables:
Car
- Long :: Car_id
- String :: Type
Owner
- Long :: Owner_id
- String :: name
- int :: age
Car_Owner
- Long :: Car_Id
- Long :: Owner_Id
- Date :: Bought_Date
Question:
So i understand the best way to transfer data between java and a SQL DB is by using the java persistence API. Each table is represented as a java class with the @Entity annotation.
But how is the mid-table "Car_Owner" represented as a java class?