Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Provide support for declarative TX and transactional observers #65
Hey, first of all, thanks a lot for this project, it's very helpful!
One thing I was missing is support for declarative TX control (via
I figured out the steps needed and added an example to our demos repo in Hibernate: hibernate/hibernate-demos#39
Also planning to write a blog post about this, but actually it'd be great if this was working out-of-the-box in Weld JUnit. I.e. there could be a new module, "persistence" or so, which does all the things I had to do manually:
referenced this issue
Jan 14, 2019
I think this would be an interesting yet very specific addition and that it should be an independent feature that you can but don't need to run in your tests.
Ideally, we would have this as separate module, but you will need to somehow access the
If you can cobble together a PR, we can go from there.
Here's my blog post on the topic which also contains an example implementation:
The code is in the hibernate-demos repo and I've rewritten it slightly now, so everything is easily usable via a JUnit rule. I think you could essentially pull over this rule into a new weld-junit-persistence module and this would already be of great help.