Minor enhancement adapted from my existing project customization:
add addTableDirectJoin(String foreignTableName) to org.compiere.model.Query class.
a convenient method to add table direct type of join clause. For e.g, if your query is for AD_User table, instead of writing query.addJoinClause(“JOIN C_BPartner ON (AD_User.C_BPartner_ID=C_BPartner.C_BPartner_ID”), you use query.addTableDirectJoin(“C_BPartner”) instead.
added unit test to test and also illustrate the usage of the new method.
Minor enhancement adapted from my existing project customization:
add addTableDirectJoin(String foreignTableName) to org.compiere.model.Query class.
a convenient method to add table direct type of join clause. For e.g, if your query is for AD_User table, instead of writing query.addJoinClause(“JOIN C_BPartner ON (AD_User.C_BPartner_ID=C_BPartner.C_BPartner_ID”), you use query.addTableDirectJoin(“C_BPartner”) instead.
added unit test to test and also illustrate the usage of the new method.