This content has been marked as final.
Show 2 replies
-
1. Re: No transaction
nickarls Mar 2, 2015 4:43 AM (in response to nickarls)Getting even more strange.
If I have an entity Foo and a FooBean with a setFoo(Foo) and saveFoo() which does a merge on the foo, I get update statements for a sequence like
Foo foo = em.find(Foo.class, 1);
fooBean.setFoo(foo);
fooBean.saveFoo();
but not for
Foo foo = new Foo();
fooBean.setFoo(foo);
fooBean.saveFoo();
Both use an requestscoped, produced CDI-@Injected EM
...
-
2. Re: No transaction
aslak Mar 3, 2015 9:30 AM (in response to nickarls)To follow up conversation from IRC;
The basics seems to work: https://gist.github.com/aslakknutsen/cdde48b1c735a01ae307
Did you come and closer to figuring out what the cause of this behavior is?