I'm using spring-data-jpa to generate my Dao/Repositories (paging and sorting repository), so it doesn't contains a flush method.
I'll try to change this interface by simplejparepository instead and test again ;). Many thanks, Best regards 2013/2/1 Andreas Pieber <[email protected]> > typically executing flush on the entitymanager should solve this problem. > Have you tried this? > > Kind regards, > Andreas > > > On Fri, Feb 1, 2013 at 10:24 AM, Charlie Mordant <[email protected]>wrote: > >> Hi, >> >> I've just a simple question about the Aries-transaction mecanism. >> >> I've a bean (subcription bean) who's accessing my Aries dao service (a >> spring data jpa repository) with the tx:transaction declaration (else, it >> complains that transaction is required): >> >> <bean id="mUserRepository" factory-ref="userPuJpaRepositoryFactory" >> factory-method="getRepository"> >> <argument >> value="net.osgiliath.user.repository.MUserRepository"></argument> >> <tx:transaction method="*" value="Required" /> >> </bean> >> >> Out of this bean, I've a camel transformer which must access to my entity >> id in order to pass it to the view. >> >> The problem when persisting is that I'm always in the transaction so that >> the id is null. >> >> How can I stop this transaction just after my dao or my bean(I do not >> need it within camel for the moment)? >> >> Best regards, Charlie >> >> -- >> >> Charlie Mordant >> > > -- Salutations cordiales, Charlie Mordant
