Avihai (2) [Avatar] Offline
#1
Hey,

i use in hyperjaxb2 , it generate a jaxb and hiebenate mapping from xsd.

it supports for collection only in :
Bag,Idbag,List

i have many to many relation (no need for biderctional)

lets say :
Book:
bookId- assign by application (pk)
name

Company:
companyId -assign by application (pk)
name.

I have a table Book_To_Comany with column:
bookId
companyId

i want that book will have many to many relation with company.

how can i write the idbag section in Book hbm?

I dont need list , because the order is not important and i dont need or want index, and bag is not good due to performence ( and Book can not have multiple company)

Thank you