hibernate - How to select data from two unrelated tables using Criteria in a single query? -


i trying data 2 unrelated tables using hibernate criteria in single query unable record.please me data.thanks in advance here query.here select column reviews tables , entire entity object company table.

detachedcriteria reviews= detachedcriteria.for<reviews>("reviews")         .setprojection(projections.property("reviews.rating"); criteria criteria = getsession().createcriteria(typeof(company))         .add(subqueries.propertyin("name", reviews); 


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

How to understand 2 main() functions after using uftrace to profile the C++ program? -