Hi All,
I'm new in hibernate and now using hibernate 3.2.1.
I need to take data from three table and store it in Map object.
I have the following tables in the database:
Parameter_Definition(parameter_id int,
parameter_name nvarchar(100),
parameter_data_type int)
Parameter_Value(Parameter_id int,
parameter_value nvarchar(100))
Dataset(id int IDENTITY,
dataset_id int,
parameter_id int)
The relationships are:
Parameter_Definition - Parameter_Value => one to many.
Parameter_Value - Dataset => Many to one
I have three classes that are mapped by Hibernate annotations.
My problem is that in the Dataset class I have a Set object which holds the dataset's parameters, while I want a Map which its key is the parameter name and the value is the Parameter_Value instance.
How can I do it?
|