This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Little Book of Impediments (e-book only) and have Tom Perry on-line!
See this thread for details.
Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

trim function for Hibernate criteria

 
Mohit Sinha
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I need to apply a trim function on a database column which is part of the Criteria query not HQL. I did not find a way with the available documentation nor on Hibernate related forums.
The data in the database can contain some trailing spaces. need to get rid of it when using a expression.eq via a criteria clause.

Let me know your thoughts

Thanks,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic