@Test @DisplayName("init builder with the entity ID, if the field is required or assumed required") void initBuilderWithId() { E entity = createEntity(); Transaction<I, E, S, B> tx = createTx(entity); FieldDescriptor firstField = entity.state() .getDescriptorForType() .getFields() .get(0); assertThat(tx.builder() .getField(firstField)) .isEqualTo(entity.id()); }
final B builder() { return builder; }
Transaction { final B builder() { return builder; } }
Transaction { final B builder() { return builder; } protected  Transaction(E entity); protected  Transaction(E entity, S state, Version version); }
Transaction { final B builder() { return builder; } protected  Transaction(E entity); protected  Transaction(E entity, S state, Version version); final void commitIfActive(); @VisibleForTesting final void commit(); final void setListener(TransactionListener<I> listener); }
Transaction { final B builder() { return builder; } protected  Transaction(E entity); protected  Transaction(E entity, S state, Version version); final void commitIfActive(); @VisibleForTesting final void commit(); final void setListener(TransactionListener<I> listener);  }