I have 2 tables p, q I am trying to join it with ID. using createAlias inside createCriteria.list()
Please show me right syntax for the join.
Please read this up. Look for alias
http://docs.jboss.org/hibernate/orm/3.3/reference/en/html/querycriteria.html#querycriteria-projection