Hi,
I am new to hibernate and have a question. Its a simple one but dint find answers anywhere. I do a join and select 6 fields. The thing is that it goes on to the inner level.
"select distinct " +
"sc.componentVersion.component.name as cname, sc.componentVersion.component.description " +
",sc.componentVersion.version, sc.componentVersion.description " +
",sc.componentVersion.component.group.name, sc.componentVersion.component.group.description " +
"from Stack as s join s.stackComponents as sc " +
"where s.name = :stackNameQuery"
StackComponent has a foreign key reference to Stack Table.
StackComponent has a foreign key reference to ComponentVersion
ComponentVersion has a foriegn key reference to Components.
Components has a foriegn key reference to Group.
Now my question is when i execute the above query i get a List of Object objects. How do i get the actual values of sc.componentVersion.componentName and other fields?
Its really very urgent. I would be really grateful if somebody help me out.
Thanks in advance
|