Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • Why the order-by in hbm.xml is not resulting the sort in UI(jsf)?

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 571
    Answer it

    The order-by in hbm.xml is not resulting the sort in UI(jsf), where as the hibernate query is printing in console is working correct

     

    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

    Parent DTO

    <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
     

    Hibernate Query 

    where decisionin0_.GSD_ID=? order by decisionin0_.ID

 0 Answer(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: