Hi,
I have two tables, one table (LOOK_UP) has two columns -a key column and a description column. The second table(CL_INFO) has the key column from the first table as foreign-key.
LOOK_UP table
INSURED_UID number(10)
INSURED_NAME varchar2(50)
CL_INFO table
....
....
INSURED_UID number(10)
....
....
I've modelled this as a many-to-one relationship in the mapping file corresponding to the CL_INFO table, the mapping looks like this-
<many-to-one name="insuredUid" column="INSURED_UID" class="LookUpRow"/>
When I execute a hibernate find query on the CL_INFO table from a stand-alone java program and try to retrieve the description column, it works fine and I'm able to get the description.
But when I execute the same query in a multi-tiered environment, the description is not fetched.
I have two questions-
-is the many-to-one mapping the right choice for this situation and
-why is it that no description is retrieved in a multi-tiered environment.
Thanks in advance.[/list]