on-internet
← Community

Connecting multiple entities with same fields in a Criteria Builder process

Stack Overflow ·

I am trying to figure out how to use a process currently using the CriteriaBuilder coding with adding a new entity. The main table is this A8SPT190 class. I am trying to connect to the A8SPT157 class. I need to connect this using the caseHudOffice and caseNumber fields in both entities. Is there a JOIN command that can combine the 'company' and 'companyProperty" together using the 2 fields? Thanks Map<String, Object> salesDetailsMap = new HashMap<>(); CriteriaBuilder builder = samsSessionFactory.getCriteriaBuilder(); CriteriaQuery<A8SPT190> criteria = builder.createQuery(A8SPT190.class); Root<

Comments

Sign in or sign up to comment and upvote.

No comments yet.