Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure JpaAfterClearFlusher is registered if an EntityManager exists #6

Closed
robert-bor opened this issue Oct 25, 2017 · 0 comments
Closed
Assignees

Comments

@robert-bor
Copy link
Contributor

See the raison d'etre for the AfterClearFlusher concept.

The starter must ascertain the JpaAfterClearFlusher is instantiated with the EntityManager and registered to BeanMapper.

@robert-bor robert-bor self-assigned this Oct 25, 2017
robert-bor added a commit that referenced this issue Oct 25, 2017
Issue #6 when JPA is in play, make sure to register the JpaAfterClearFlusher with a valid EntityManager. This will be added to the flush-chain, to be potentially executed when flushAfterClear is turned on. This can be either set on BeanCollection or the override configuration.

Note that @PersistenceContext cannot be used in the auto-configuration, since this will fail the tests. Instead optional @Autowired is used.
robert-bor added a commit that referenced this issue Oct 25, 2017
Issue #6 when JPA is in play, make sure to register the JpaAfterClearFlusher with a valid EntityManager. This will be added to the flush-chain, to be potentially executed when flushAfterClear is turned on. This can be either set on BeanCollection or the override configuration.

Note that @PersistenceContext cannot be used in the auto-configuration, since this will fail the tests. Instead optional @Autowired is used.
robert-bor added a commit that referenced this issue Oct 25, 2017
Issue #6 when JPA is in play, make sure to register the JpaAfterClearFlusher with a valid EntityManager. This will be added to the flush-chain, to be potentially executed when flushAfterClear is turned on. This can be either set on BeanCollection or the override configuration.

Note that @PersistenceContext cannot be used in the auto-configuration, since this will fail the tests. Instead optional @Autowired is used.
robert-bor added a commit that referenced this issue Oct 25, 2017
Issue #6 when JPA is in play, make sure to register the JpaAfterClearFlusher with a valid EntityManager. This will be added to the flush-chain, to be potentially executed when flushAfterClear is turned on. This can be either set on BeanCollection or the override configuration.

Note that @PersistenceContext cannot be used in the auto-configuration, since this will fail the tests. Instead optional @Autowired is used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant