Mapping a Join Table with Additional Columns

View: New views
2 Messages — Rating Filter:   Alert me  

Mapping a Join Table with Additional Columns

by taltun :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm newbie to JPA.

I'm using JPA on Hibernate.

I have one-to-many relationship between a Product and Contact. I want to create an additional column(s) like "is_linked" in the join table ProductContact.

I want a quick, simple and annotation based example, if you could provide it.

Please, provide a code example.

Thanks in advance!!

-taltun

Re: Mapping a Join Table with Additional Columns

by James Sutherland :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

LightInTheBox - Buy quality products at wholesale price!