SQL query into Hibernate query -


How do I write this SQL query as a hibernate query? `Ub_orders` and JOIN Product Info from

  SELECT u.id, u.orderId, p.productName, u.key2, i.forsor_id. P at p ProductID = U.productId I and U.I.K. 2 = Add to i.id where p. Product name '% OSS Hosting Fee% and U.Kerrated & gt; 2014-02-1 and forsor_id is a tap order by U.key2;  

I easily see two problems: Firstly the backticks are used and the second date Need Single Quotes:

  Join product.info at SELECT u.id, u.orderId, p.productName, u.key2, i ubercart_reseller_orders forced_matrix_spans_id u Add to p.productId = u.productId and i.key2 = i.id where p.productName '% oss HOSTING FEE%' and u.createdDate & gt; '2014-02-1' and ---------------------- ^ forced_matrix_sponsor_id is empty order by ukey2;    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -