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
Post a Comment