Jointable « Column « JPA Q&A





1. Jointable with three columns    stackoverflow.com

I want to create the following mappings in JPA-2.0 using Hibernate 3.6 and MySQL 5.1:

Table "PIPE"
------------
pipe_id (PK)
============
pipe_name
pipe_modified_date
------------


Table "ALGO"
------------
algo_id (PK)
============
algo_name
------------
The table "Pipe" can store multiple algos (many-to-many between "Pipe" and "Algo"). It ...

2. Add/Create a new Column into JoinTable    forum.hibernate.org

Hi, there: I'd like to know how to through annotation to add/create a new column into a join table so that the join table would have an additional column besides joined columns from other tables. For example, the following annotation would give me a join table with column "SERVER_ID" and column "CLIENT_ID" in table "server_client". If I were to add/create column ...