First of all I would like to thank everyone reading this. I guess this question might have been asked before in this forum, but I couldn't find it, probably becouse I didn't know how to search for it. Any help would be very useful.
In my Java application's database, there are two tables that relate with each other using a many to many relationship. There is, of course, a link table between them.
Table 1: Modules
Columns: Id, name, etc
Table 2: Status
Columns: Id, name
Table 3: Module_status
Columns: Module_Id, Status_Id, Status_Value
When I set the many to many relationship in hibernate, the generated class Modules has a list of Status, but one of the informations I need is in the Module_status table, which is the value of this Status on the given Module.
Is there a way to configure the framework in a way that I can retrieve this information in the Module object?