0

I have a XML typed column that I would like to query on using xpath. The column is treated as a String in our domain model. Is there a way to build a query to do this using a JPA CriteriaBuilder?

eberg
  • 33
  • 3
  • No using the defaults that JPA provides, you should extract the column and then apply the XPATH expression. – Koitoer Apr 06 '14 at 20:28

1 Answers1

0

Jpa does not support such a thing. Check if it's possible using a native query

Leo
  • 6,480
  • 4
  • 37
  • 52
  • Thanks. I am now trying to use a native database function. See [new problem](http://stackoverflow.com/questions/22922038/jpa-criteria-api-calling-sql-server-database-exist-function) – eberg Apr 07 '14 at 22:58