composite key join columns
问题 My table VENDORBRANCH has composite keys : "vendorCode" and "vendorBranchCode" which I have defined using the @Id annotation and using @IdClass. The field "vendorCode" is referenced as a foreign key in VENDORCRTERMS class. I'm using postgresql db. Right now my sql query in the service implimentation looks like this but i want to include composite keys in the query: Query<?> query = session.createQuery("from VENDORBRANCH where vendorCode = ?"); query.setParameter(0, mf01_vendorCode); I'm very