Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

paging using spring display tag  RSS feed

 
Saikiran Madhavan
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i am using hibernate criteria

hibernateCriteria.add(
Restrictions.eq("folderId", criteria.getfolderId()));

is it possible to call method from hbm.xml whose query like

select m.* FROM xyz m, abc f
where m.message_id = f.message_id
and f.folder_id = ?

beacuase in general criteria auto append the where clause
Is it possible to use criteria in above sql query in .hbm
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!