Hi,
I have these tables:
Code:
Component_Type
id
Component
id
type_id
Version
id
component_id
Component_Dependency
id
base_version_id
dependency_version_id
In other words, a component may have a set of dependent components. These can be of any type (from the Component_Type table).
I would like, in Object Oriented code, to do something like:
Set dependentComponentVersions = (Set)version.getDependencies().get( componentType );
This would return a set of dependent component versions, from a specific component versions. The set of dependent component versions would contains only dependent component versions of a certain type.
With Hibernate:
I can't see a way to use a
map collection having sets as its elements.
I don't see how I could have my mapping files to accomplish what I just described
Is there a way? Any comments on the way we modelised this in the DB?
Thank you,