Thursday 15 August 2013

java - Query composite index with Hibernate for many entities -


I am using hibernate and using a composite index (a, b, c, d) I want to query. The SQL statement can look like this:

  SELECT * my_table where one = 2 and b = '2001' and c = 'xx' And d = 23 or one = 2 and b = '2002' and c = 'xx' and d = 23 - or ...;   

Is there a chance for such a query to pass a list to Hibernate? Using stringbuffers to add a statement based on the length of my list What do I want "post-text" itemprop = "text"> <

I hope

No comments:

Post a Comment