Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

hibernate subqueries

 
rajiv jackz
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai to all,

how to perform hibernate subqueries . give me example.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Criteria or HQL?
 
rajiv jackz
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HQL and Left join and right join in HQL too.
 
Paul Sturrock
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here you go.
 
rajiv jackz
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks ..

I am using displaytag for pagging(pagination )and sum of particular column.

when i give page size it is not showing the total. if I remove the page size it is showing the total of particular column.

hear is my code

<display:table name="${getRevenue}" pagesize="15" export="true" class="simple" decorator="org.displaytag.decorator.TotalTableDecorator" >

<display:column property="revenue" title="Revenue" total="true" />

<display:column property="revenueShare" title="Revnue Share " total="true" /> can you provide solution?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic