You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Gerhard Petracek (JIRA)" <ji...@apache.org> on 2017/04/18 17:15:41 UTC

[jira] [Comment Edited] (DELTASPIKE-1244) Transactions and CustomRepositories do not work

    [ https://issues.apache.org/jira/browse/DELTASPIKE-1244?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15973046#comment-15973046 ] 

Gerhard Petracek edited comment on DELTASPIKE-1244 at 4/18/17 5:15 PM:
-----------------------------------------------------------------------

please provide further details. e.g. the reason for mixing @javax.transaction.Transactional and @org.apache.deltaspike.jpa.api.transaction.Transactional as well as the setup you are using (because @org.apache.deltaspike.jpa.api.transaction.Transactional doesn't use UserTransaction per default).

just fyi:
it should be an issue with your setup, because it works basically - see e.g.: https://github.com/CDIatWork/IdeaForkLite


was (Author: gpetracek):
please provide further details. e.g. the reason for mixing @javax.transaction.Transactional and @org.apache.deltaspike.jpa.api.transaction.Transactional as well as the setup you are using (because @org.apache.deltaspike.jpa.api.transaction.Transactional doesn't use UserTransaction per default).

> Transactions and CustomRepositories do not work
> -----------------------------------------------
>
>                 Key: DELTASPIKE-1244
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1244
>             Project: DeltaSpike
>          Issue Type: Bug
>          Components: Data-Module
>    Affects Versions: 1.7.2
>         Environment: Wildfly 10.1, Java 8 , JEE Application
>            Reporter: Shane Tom
>         Attachments: deltaspike_data_Error_Testcase.txt
>
>
> A custom Repository implemented in the form:
> @org.apache.deltaspike.jpa.api.transaction.Transactional
> @Repository(forEntity = TestEntity.class)
> public abstract class ExtendedCustomTestRepo extends AbstractEntityRepository
> Cannot be used in an CDI Bean, that uses Transaction. If doing so, an Exception is thrown: UserTransaction is not available within the scope of a bean or method annotated with @Transactional.
> I Attached the Testcase as a Textfile



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)