Consistent entity updates without exposing JpaTemplate

2017-04-21 Thread Jens Offenbach
Hallo, I am sorry, but I am still in trouble with JpaTemplate and API design. I am trying to hide JpaTemplate in my service implementation, but I am not sure, if this is the recommended approach. Unfortuantely, I cannot find any complex examples in the web. Let me explain the problem with the h

Re: Consistent entity updates without exposing JpaTemplate

2017-04-22 Thread Christian Schneider
For now this is a good pattern. I plan to add a pure TransactionTemplate or similar to cover this case outside of JPATemplate. Alternatively you can inject a UserTransaction and use it to create the transaction. Christian 2017-04-21 16:49 GMT+02:00 Jens Offenbach : > Hallo, > I am sorry, but I

Aw: Re: Consistent entity updates without exposing JpaTemplate

2017-04-22 Thread Jens Offenbach
ards, Jens Gesendet: Samstag, 22. April 2017 um 13:22 Uhr Von: "Christian Schneider" An: user@aries.apache.org Betreff: Re: Consistent entity updates without exposing JpaTemplate For now this is a good pattern. I plan to add  a pure TransactionTemplate or similar to cover th

Re: Re: Consistent entity updates without exposing JpaTemplate

2017-04-22 Thread Yogesh Rao
amstag, 22. April 2017 um 13:22 Uhr > Von: "Christian Schneider" > An: user@aries.apache.org > Betreff: Re: Consistent entity updates without exposing JpaTemplate > > For now this is a good pattern. I plan to add a pure TransactionTemplate > or similar to cover this case outs

Re: Re: Consistent entity updates without exposing JpaTemplate

2017-04-23 Thread Christian Schneider
; sounds really interesting. >> >> Can you plase provide a small example for your alternative solutions. How >> can I obtain a "UserTransaction" to create the transaction? >> >> Best regards, >> Jens >> >> Gesendet: Samstag, 22. April 201

Re: Re: Consistent entity updates without exposing JpaTemplate

2017-04-23 Thread mit_jones
.15396.n3.nabble.com/Consistent-entity-updates-without-exposing-JpaTemplate-tp4035160p4035167.html Sent from the Aries - User mailing list archive at Nabble.com.