Good afternoon everyone, I would like some help to implement multiple attachments in the same history. Was thinking of making the model as follows:
Currently -> History (attachment_id) ----- Attchaments (id);
This model is one to one, in order to update many to many a new table that has a field of historic and a field for attachments should be created, I did as follows:
History (id) -----> Item_attachs (ID (PK) History_id (FK) Attach_ID (FK)) <------ Attchments (id)
I already made the creation of mapping tables, but now I am not able to proceed in the matter, because I'm a bit layman in Java.
'll Disposal. Thank you!
I remembered to put the Hibernate code does not follow the attachment.
Thank you!
Last edit: Leandro Miozzo Bonato 2014-06-11