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

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -