Click here to Skip to main content
15,889,651 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am not able to get the sorted table from the data base,where as the hbm.xml changes are reflecting only to print the console hibernate query but not resulting anything in UI

What I have tried:

headerDTO---->
<pre lang="HTML">
<bag cascade="all-delete-orphan" inverse="true" lazy="false"
			name="decisionInfoDTOs" order-by = "ID">
			<key>
				<column name="GSD_ID" />
			</key>
			<one-to-many class="DecisionInfoDTO" />
		</bag>


I need to get sorted table according to "ID" in the above DTO,its not working
but the hibernate query in console is printing fine

The Hibernate query--->
SQL
where decisionin0_.GSD_ID=? order by decisionin0_.ID


where it is wrong?how to solve this?
is this problem with UI or query
and this is the child table (DecisionInfoDTO)all the data is fetching from parent table,and i am not able to sort t he child table through this.
Kindly help i am new to this
Thank you
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900