• 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

my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!