[jira] [Commented] (DELTASPIKE-1290) Enable EntityGraph in findBy method

2017-09-25 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-1290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16178835#comment-16178835 ] Thomas Hug commented on DELTASPIKE-1290: Hi [~hwellmann], could you

[jira] [Commented] (DELTASPIKE-1098) CriteriaTest#should_create_count_criteria fails on OpenJPA / TomEE7

2016-03-23 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-1098?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208013#comment-15208013 ] Thomas Hug commented on DELTASPIKE-1098: [~tandraschko] Thanks Thomas,

[jira] [Commented] (DELTASPIKE-940) @Transactional and @EntityManagerConfig each use a different method to resolve EntityManagers

2016-01-22 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15112328#comment-15112328 ] Thomas Hug commented on DELTASPIKE-940: --- Agree, v2 might be a good opportu

[jira] [Commented] (DELTASPIKE-940) @Transactional and @EntityManagerConfig each use a different method to resolve EntityManagers

2016-01-22 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15112206#comment-15112206 ] Thomas Hug commented on DELTASPIKE-940: --- So by using {{@Transactional(quali

[jira] [Commented] (DELTASPIKE-940) @Transactional and @EntityManagerConfig each use a different method to resolve EntityManagers

2016-01-21 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-940?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15110810#comment-15110810 ] Thomas Hug commented on DELTASPIKE-940: --- The main reason to use a reso

[jira] [Commented] (DELTASPIKE-1045) Convenience repository classes exposing all EntityManager methods

2015-12-29 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-1045?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15074235#comment-15074235 ] Thomas Hug commented on DELTASPIKE-1045: Shouldn't "full

[jira] [Resolved] (DELTASPIKE-978) ClassCastException with Native Queries

2015-10-05 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug resolved DELTASPIKE-978. --- Resolution: Fixed > ClassCastException with Native Quer

Re: [DISCUSS] Add persist and merge methods to EntityRepository

2015-08-24 Thread Thomas Hug
EntityRepository is optional, so default hierarchy might be misleading here ;) Similar as EntityRepository or CriteriaSupport, EntityManagerDelegate was rather something to put on top of a repo, that's primarily why I didn't extend EntityRepository from it. Also I had the impression that having sav

Re: Issues with EntityRepository.save()

2015-08-14 Thread Thomas Hug
Thanks guys for all the effort in digging into the issue here. From a pragmatic point of view I guess #2 would be my preferred option and then think about what we should do with that save thing :) Maybe a strategy pattern similar to what we have for TX would be the way to go. The documentation doe

Re: Return type of Repository native query

2015-08-11 Thread Thomas Hug
Pushing this one as soon as the release is out. On Fri, Aug 7, 2015 at 11:22 PM, Daniel Cunha wrote: > Very nice!!! :D > > On Fri, Aug 7, 2015 at 5:45 PM, Thomas Hug wrote: > > > Hi Daniel > > Thnx yes I can take this one. It's about time I show up in Git history

[jira] [Assigned] (DELTASPIKE-978) ClassCastException with Native Queries

2015-08-07 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-978?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug reassigned DELTASPIKE-978: - Assignee: Thomas Hug (was: Daniel Cunha (soro)) > ClassCastException with Nat

Re: Return type of Repository native query

2015-08-07 Thread Thomas Hug
Hi Daniel Thnx yes I can take this one. It's about time I show up in Git history again :-) On Fri, Aug 7, 2015 at 6:19 PM, Daniel Cunha wrote: > Thomas, > > if you don't have time to see it, I can doing on next week. > Let me know if you have time to fix it > > On Fri, Aug 7, 2015 at 1:07 PM, a

Re: Return type of Repository native query

2015-08-07 Thread Thomas Hug
Hi akm Given it is stated like that in the documentation, I guess we have a bug here. The code doesn't call the EM with a result class so there's no mapping happening. As a workaround, you might specify a @NamedNativeQuery where you can add a result class and then reference it in the @Query annota

Re: Data and JPA module

2015-07-01 Thread Thomas Hug
Hi Daniel AFAIR we have a hook in the JPA module [1][2] where we can propagate the repository EM to the transaction strategy (DefaultEntityManagerHolder and [3]). So EntityManagerResolver should have precedence, but it depends overall on the TransactionStrategy if it's picked up or not. Agree that

[jira] [Closed] (DELTASPIKE-448) Review exception handling in Data module

2015-06-30 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-448?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug closed DELTASPIKE-448. - Resolution: Fixed Thanks Daniel, missed to close it. > Review exception handling in D

Re: Criteria Query specification support?

2015-06-16 Thread Thomas Hug
Hi, Currently that's not supported. If you need something similar in your projects, it should be straight forward to implement this as an extension [1]. But might be worth looking into it to add it to the core API. Cheers, Thomas [1] http://deltaspike.apache.org/documentation/data.html#Extensions

Re: DeltaSpike Data Module Repository

2015-06-15 Thread Thomas Hug
s://github.com/danielsoro/deltaspike/commit/ff9a42704547a7373421400960a09b056288ca1c > ? > > On Fri, Jun 12, 2015 at 5:32 PM, Daniel Cunha > wrote: > > > +1 > > > > On Fri, Jun 12, 2015 at 8:42 AM, Thomas Hug > wrote: > > > >> Oooh I see... I should r

Re: DeltaSpike Data Module Repository

2015-06-12 Thread Thomas Hug
pike/modules/data/impl/src/main/java/org/apache/deltaspike/data/impl/builder/DelegateQueryBuilder.java > > On Fri, Jun 12, 2015 at 4:39 AM, Thomas Hug wrote: > > > Thanks Daniel for checking! Different reason it doesn't work than I had > in > > memory :-) > > I think

Re: DeltaSpike Data Module Repository

2015-06-12 Thread Thomas Hug
b02f14731e9c7fd5d20c255bae2a2033617a9b8 > > On Thu, Jun 11, 2015 at 4:11 PM, Thomas Hug wrote: > > > Using the @Query(hints...) is the place to set the hints with DS Data. > > Unfortunately (hope my memory isn't wrong) this currently doesn't work > with > > a

Re: DeltaSpike Data Module Repository

2015-06-11 Thread Thomas Hug
Using the @Query(hints...) is the place to set the hints with DS Data. Unfortunately (hope my memory isn't wrong) this currently doesn't work with a method expression. As soon as there's a @Query it's not considered a method expression anymore. Should not be too difficult to change - and should be

[jira] [Commented] (DELTASPIKE-700) Add #tableName() to AbstractEntityRepository

2015-06-11 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581731#comment-14581731 ] Thomas Hug commented on DELTASPIKE-700: --- Put some comments on the PR, l

[jira] [Commented] (DELTASPIKE-700) Add #tableName() to AbstractEntityRepository

2015-06-10 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14580284#comment-14580284 ] Thomas Hug commented on DELTASPIKE-700: --- FYI we already do parsing of orm

[jira] [Commented] (DELTASPIKE-894) Trim for CriteriaSupport API

2015-06-08 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14577290#comment-14577290 ] Thomas Hug commented on DELTASPIKE-894: --- Looks good on the API side. For

[jira] [Commented] (DELTASPIKE-701) Add method in EntityRepository to merge a detached entity and remove it

2015-06-08 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14577283#comment-14577283 ] Thomas Hug commented on DELTASPIKE-701: --- Looks good to me too. > Add me

Re: Data Module Changes

2015-06-03 Thread Thomas Hug
Sorry for being the bottleneck here - currently on holidays but will be back next week. Cheers, Thomas On Thu, May 28, 2015 at 8:53 PM, Daniel Cunha wrote: > Hi folks, > > I submitted two patch to change the api in EntityReposity and Critreia. > > https://issues.apache.org/jira/browse/DELTASPIK

Re: CriteriaSupport API

2015-05-15 Thread Thomas Hug
u. > > On Wed, May 13, 2015 at 1:10 PM, Daniel Cunha > wrote: > > > Hi Thomas, > > > > I'm looking to DELTASPIKE-701 and DELTASPIKE-603 > > I'm preparing to start with DELTASPIKE-603. Do you have something for it > > or did something? > >

Re: CriteriaSupport API

2015-05-13 Thread Thomas Hug
e: > Hi Thomas, > > I can to see that we have some issues opened and not fixed if you want I > can try help you with this tasks. > Let me know if you need help to fix another issues in data-module. :) > > On Mon, May 11, 2015 at 4:55 AM, Thomas Hug wrote: > > > Hi Danie

Re: CriteriaSupport API

2015-05-11 Thread Thomas Hug
Hi Daniel Thanks for the patch! I should have some bandwidth the next week to do some DS coding and take care about it. There's indeed room for improvement for the criteria API. I was not really sure how useful people find it and started with a simplified version, but if it gets more adoption it's

[jira] [Resolved] (DELTASPIKE-886) Add ignoreCase() to the criteria API

2015-04-30 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug resolved DELTASPIKE-886. --- Resolution: Fixed > Add ignoreCase() to the criteria

[jira] [Assigned] (DELTASPIKE-886) Add ignoreCase() to the criteria API

2015-04-29 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug reassigned DELTASPIKE-886: - Assignee: Thomas Hug > Add ignoreCase() to the criteria

[jira] [Commented] (DELTASPIKE-871) save() and findByxxx() in same transaction gives constraint violation exception

2015-04-29 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14519045#comment-14519045 ] Thomas Hug commented on DELTASPIKE-871: --- Couldn't reproduce this on W

[jira] [Resolved] (DELTASPIKE-822) Repository method lookup in super interfaces

2015-04-29 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-822?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug resolved DELTASPIKE-822. --- Resolution: Fixed > Repository method lookup in super interfa

[jira] [Commented] (DELTASPIKE-871) save() and findByxxx() in same transaction gives constraint violation exception

2015-04-08 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-871?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14485241#comment-14485241 ] Thomas Hug commented on DELTASPIKE-871: --- Which transaction strategy do you

[jira] [Commented] (DELTASPIKE-822) Repository method lookup in super interfaces

2015-03-31 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-822?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14388167#comment-14388167 ] Thomas Hug commented on DELTASPIKE-822: --- Thnx a lot Daniel - I'm curre

Re: multithreaded repository issues

2015-03-16 Thread Thomas Hug
Thanks! Hope I'll get some time soon to have a detailed look. RE concurrency: My initial impression is that calling Runnables out of a @Singleton with a @RequestScoped EM might lead to interesting results ;-) Probably we have to sort this out first. On Mon, Mar 16, 2015 at 12:57 PM, hwaastad wro

Re: multithreaded repository issues

2015-03-16 Thread Thomas Hug
Static information and validation is indeed computed after bean discovery, but there are various injections happening during each call. Might also be interesting to see how different scopes can impact performance (e.g. AppScoped repositories vs. dependent). On Sun, Mar 15, 2015 at 10:42 PM, Karl K

Re: multithreaded repository issues

2015-03-15 Thread Thomas Hug
Hi The Data module works mainly with dependent scope and a ThreadLocal. Anything ApplicationScoped around which could pull in the dependent beans? Example projects we like always best when it comes to defect reports :-) The overhead is definitely expected. But I agree it would be interesting to

[jira] [Commented] (DELTASPIKE-420) Transactional repositories

2015-03-09 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14352786#comment-14352786 ] Thomas Hug commented on DELTASPIKE-420: --- On Wildfly I would have first t

Re: Unable to enable alternative BeanManagedUserTransactionStrategy

2015-03-02 Thread Thomas Hug
Hi Ove ActiveEntityManagerHolder gets populated in a Data module repository so the TXStrategy can use the same EntityManager as the repository. EMs with qualifiers have to be resolved there slightly different, see http://deltaspike.apache.org/documentation/data.html#_using_multiple_code_entitymana

[jira] [Commented] (DELTASPIKE-836) Support case insensitive LIKE queries with method naming convention

2015-02-24 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14334721#comment-14334721 ] Thomas Hug commented on DELTASPIKE-836: --- Great, thnx! I'll update docu

[jira] [Resolved] (DELTASPIKE-836) Support case insensitive LIKE queries with method naming convention

2015-02-23 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug resolved DELTASPIKE-836. --- Resolution: Fixed > Support case insensitive LIKE queries with method naming convent

[jira] [Commented] (DELTASPIKE-836) Support case insensitive LIKE queries with method naming convention

2015-02-23 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-836?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333122#comment-14333122 ] Thomas Hug commented on DELTASPIKE-836: --- IgnoreCase should probably be rel

[jira] [Assigned] (DELTASPIKE-836) Support case insensitive LIKE queries with method naming convention

2015-02-23 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug reassigned DELTASPIKE-836: - Assignee: Thomas Hug > Support case insensitive LIKE queries with method nam

[jira] [Resolved] (DELTASPIKE-683) user criteria() error

2015-01-23 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug resolved DELTASPIKE-683. --- Resolution: Cannot Reproduce No feedback here - assuming test has not been run in a Java

[jira] [Resolved] (DELTASPIKE-714) QueryResult.count not work if jpql have order by

2015-01-23 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-714?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug resolved DELTASPIKE-714. --- Resolution: Fixed > QueryResult.count not work if jpql have order

[jira] [Resolved] (DELTASPIKE-787) NPE in EntityRepositoryHandler for persistent methods of DTO EntityRepository

2015-01-22 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug resolved DELTASPIKE-787. --- Resolution: Fixed > NPE in EntityRepositoryHandler for persistent methods of

[jira] [Closed] (DELTASPIKE-759) 1.0.3 breaks abstractentityrepositories in ear project

2015-01-07 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-759?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug closed DELTASPIKE-759. - Resolution: Fixed Fix Version/s: 1.2.0 > 1.0.3 breaks abstractentityrepositories

[jira] [Commented] (DELTASPIKE-759) 1.0.3 breaks abstractentityrepositories in ear project

2015-01-07 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268041#comment-14268041 ] Thomas Hug commented on DELTASPIKE-759: --- Don't think something chang

[jira] [Commented] (DELTASPIKE-759) 1.0.3 breaks abstractentityrepositories in ear project

2015-01-07 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-759?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14267472#comment-14267472 ] Thomas Hug commented on DELTASPIKE-759: --- Tested with v1.2.1 and it s

[jira] [Commented] (DELTASPIKE-787) NPE in EntityRepositoryHandler for persistent methods of DTO EntityRepository

2014-11-28 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14228144#comment-14228144 ] Thomas Hug commented on DELTASPIKE-787: --- Next minor release is this wee

[jira] [Commented] (DELTASPIKE-787) NPE in EntityRepositoryHandler for persistent methods of DTO EntityRepository

2014-11-27 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14228121#comment-14228121 ] Thomas Hug commented on DELTASPIKE-787: --- Hi Wojtek! Apologies, my explana

[jira] [Commented] (DELTASPIKE-787) NPE in EntityRepositoryHandler for persistent methods of DTO EntityRepository

2014-11-27 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-787?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14227889#comment-14227889 ] Thomas Hug commented on DELTASPIKE-787: --- Hi Wojtek! Nested call

Re: ContainerManagedTransactionStrategy issue

2014-10-29 Thread Thomas Hug
Yes please do so (JIRA and GitHub). Having it reproducible will make things much easier. On Wed, Oct 29, 2014 at 11:09 AM, hwaastad wrote: > OK, > after going back to my ear project I still have an issue using repositories > and CMT. > (war is OK) > > versions <1.0.3 is ok. 1.0.3 is not. > > 1.

Re: ContainerManagedTransactionStrategy issue

2014-10-28 Thread Thomas Hug
>From the Spec (2.0) 7.5 Controlling Transactions: An application-managed entity manager may be either a JTA entity manager or a resource-local entity manager. On Tue, Oct 28, 2014 at 11:46 AM, Thomas Hug wrote: > Hi Helge > Hmmm wouldn't be aware of that. Sounds to me like &qu

Re: ContainerManagedTransactionStrategy issue

2014-10-28 Thread Thomas Hug
Hi Helge Hmmm wouldn't be aware of that. Sounds to me like "You can only use JTA with EJBs in CMT mode"? ;-) Have to check the spec. Anyway, don't think it's a DS issue - if you do the same in the EMResolver, it works fine. Maybe someone else has a better insight on the CDI side here. On Tue, Oct

Re: ContainerManagedTransactionStrategy issue

2014-10-28 Thread Thomas Hug
Hi Helge, Not sure what's wrong with the EM producer. Some CDI side effect maybe? Anyway, if you use an EntityManagerFactory in the producer, the sample goes green again. On Tue, Oct 28, 2014 at 9:40 AM, hwaastad wrote: > Hi, > I need some help understanding how Deltaspike handles entitymanager

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-26 Thread Thomas Hug
Hmm. Could be related to the way PartialBeans handle concrete method calls. Those calls are not routed through the Repository extension code - maybe we miss some initialization when calling entityManager(). The EM should be found in a ThreadLocal. Is injecting the EM in the repository and then usi

Re: IllegalStateException 1.0.2 -> 1.0.3

2014-10-26 Thread Thomas Hug
Sounds strange. If you get an Arquillian test project up on e.g. GitHub that would certainly help a lot. On Sun, Oct 26, 2014 at 1:53 PM, hwaastad wrote: > I think I finally figured it out. > > somewhere in my repositories I did a lookup like this: > > @repository > public abstract extends abs

Re: DS Data and WeldEE causes: URL does not exist: archive:test.war/WEB-INF/classes/META-INF/persistence.xml

2014-10-12 Thread Thomas Hug
te: > > > >> Hi Thomas > >> > >> I created this issue: > https://issues.apache.org/jira/browse/DELTASPIKE-740 > >> . > >> > >> Thanks for point out John's posting. > >> > >> Best regards > >> Ove > >

Re: DS Data and WeldEE causes: URL does not exist: archive:test.war/WEB-INF/classes/META-INF/persistence.xml

2014-10-10 Thread Thomas Hug
Hi Ove AFAIR John ran into similar issues recently, see http://mail-archives.apache.org/mod_mbox/deltaspike-dev/201409.mbox/%3ccaoqetn9hat9yiorqtsafbo5ysmntngaqpet4bnxtw9-czw5...@mail.gmail.com%3E The reason we look for persistence.xml is to extract the orm.xml files - we're mainly interested in

Re: ContainerManagedTransactionStrategy

2014-10-06 Thread Thomas Hug
Can you remove the ApplicationScoped on the EMProducer and see if that helps? On Sun, Oct 5, 2014 at 4:58 PM, hwaastad wrote: > Hi TH, > and thanks for answering. > > I'm running JTA datasource and running repository within an EJB > transaction. > > However, what I found out is that I need the e

Re: ContainerManagedTransactionStrategy

2014-10-05 Thread Thomas Hug
This should be used with a JTA datasource and the call to the repository typically goes through an EJB starting the transaction. Do you have some more context to the error? On Fri, Oct 3, 2014 at 4:58 PM, hwaastad wrote: > Hi, > i was wondering if there is any doc on the usage of > ContainerMana

Re: Repository save duplicate key

2014-10-02 Thread Thomas Hug
; > wdyt? > > > > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau > > > 2014-10-02 14:24 GMT+02:00 Thomas Hug : > > Thought about tha

Re: Repository save duplicate key

2014-10-02 Thread Thomas Hug
Manni-Bucau wrote: > @Thomas: we can maybe add it to DS itself: "insert"? > > > Romain Manni-Bucau > Twitter: @rmannibucau > Blog: http://rmannibucau.wordpress.com/ > LinkedIn: http://fr.linkedin.com/in/rmannibucau > Github: https://github.com/rmannibucau >

Re: Repository save duplicate key

2014-10-02 Thread Thomas Hug
I'd not try overriding save - the way the called method is resolved is not predictable if the method signature is the same. Adding a new method should do it though. On Thu, Oct 2, 2014 at 10:12 AM, hwaastad wrote: > Hi, > and thanks for answering. > > I'm extending the abstractentityrepository s

Re: Repository save duplicate key

2014-10-02 Thread Thomas Hug
Hi hw, currently the way we detect new or updated entities is not perfect :-) - we're using PersitenceUnitUtil.getIdentifier(entity) != null which gives not the result you expect in this case. If you want the persist semantics from JPA, I'd recommend implementing the EntityManagerDelegate. On Thu,

[jira] [Commented] (DELTASPIKE-734) remove() and removeFlush() doesn't seem to perform the operation

2014-09-30 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14152930#comment-14152930 ] Thomas Hug commented on DELTASPIKE-734: --- Kinda surprised that the EM prod

[jira] [Comment Edited] (DELTASPIKE-734) remove() and removeFlush() doesn't seem to perform the operation

2014-09-29 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151813#comment-14151813 ] Thomas Hug edited comment on DELTASPIKE-734 at 9/29/14 3:4

[jira] [Commented] (DELTASPIKE-734) remove() and removeFlush() doesn't seem to perform the operation

2014-09-29 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151813#comment-14151813 ] Thomas Hug commented on DELTASPIKE-734: --- Sounds to me like the EM is

[jira] [Commented] (DELTASPIKE-734) remove() and removeFlush() doesn't seem to perform the operation

2014-09-29 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151566#comment-14151566 ] Thomas Hug commented on DELTASPIKE-734: --- Actually 3 questions :-) - Can

[jira] [Commented] (DELTASPIKE-734) remove() and removeFlush() doesn't seem to perform the operation

2014-09-29 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-734?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14151562#comment-14151562 ] Thomas Hug commented on DELTASPIKE-734: --- Two questions: - Which transac

[jira] [Resolved] (DELTASPIKE-702) Add support to GreaterThan and LessThan in criteria to dates

2014-09-09 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-702?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug resolved DELTASPIKE-702. --- Resolution: Fixed > Add support to GreaterThan and LessThan in criteria to da

[jira] [Resolved] (DELTASPIKE-699) Signature relaxing of attribute method() in CriteriaSupport

2014-09-09 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-699?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug resolved DELTASPIKE-699. --- Resolution: Fixed > Signature relaxing of attribute method() in CriteriaSupp

Re: "mocking" of abstractentityrepository implementations

2014-09-03 Thread Thomas Hug
If you have a specific question on the persistence extension not covered here [1] you can always ask on the Arquillian forum, the gentleman responsible for it is very friendly and helpful ;-) For some code samples you can take [2] as a starting point (concrete Arquillian deployments are in subclass

Re: "mocking" of abstractentityrepository implementations

2014-09-02 Thread Thomas Hug
Repositories are partial beans, so the JIRA issue comment from Gerhard might help. Can't resist advertising Arquillian and its persistence extension here if you look for a testing solution alternative ;-) - this works nicely with repositories and doesn't need any (tedious) mocking. On Tue, Sep 2

Re: "mocking" of abstractentityrepository implementations

2014-09-02 Thread Thomas Hug
Maybe also have a look at https://issues.apache.org/jira/browse/DELTASPIKE-588 On Tue, Sep 2, 2014 at 1:24 PM, Thomas Hug wrote: > For this case it's probably also the PartialBeanBindingExtension to > deactivate. > > Is this only intended for testing purposes? > > >

Re: "mocking" of abstractentityrepository implementations

2014-09-02 Thread Thomas Hug
For this case it's probably also the PartialBeanBindingExtension to deactivate. Is this only intended for testing purposes? On Tue, Sep 2, 2014 at 12:42 PM, John D. Ament wrote: > Hi > > Did you deactivate the RepositoryExtension ? > > > On Tue, Sep 2, 2014 at 4:50 AM, hwaastad wrote: > > > H

Re: Data Module - some issues in SE/Maven Tests

2014-09-02 Thread Thomas Hug
Instead of patching the second one, for an uber-jar it might also be a valid recommendation to exclude the class over the beans.xml. On Tue, Sep 2, 2014 at 8:12 AM, Thomas Hug wrote: > Hi John > > First one should - as Romain mentioned - usually not be a problem. Might > still be

Re: Data Module - some issues in SE/Maven Tests

2014-09-01 Thread Thomas Hug
Hi John First one should - as Romain mentioned - usually not be a problem. Might still be worth adding the exception check as I've run into problems on WLS with this particular approach. We lose the ability to deal with entities defined in orm.xml's but that's probably still better than crashing :

Re: @MappedSuperclass and CriteriaSupport in Data Module

2014-08-27 Thread Thomas Hug
> Regards, > Radu > > > On Tue, Aug 26, 2014 at 12:45 PM, Thomas Hug wrote: > > > Hi Radu > > Yes good catch - makes perfectly sense. Do you mind creating a JIRA > ticket > > for that? > > > > > > On Tue, Aug 26, 2014 at 12:15 PM, Radu C

Re: DeltaSpike Stickers

2014-08-26 Thread Thomas Hug
He will bring beers! :D On Tue, Aug 26, 2014 at 12:30 PM, John D. Ament wrote: > Ha! No way I'm shipping them back w/ Bartosz. Only Ola. > > > On Tue, Aug 26, 2014 at 4:39 AM, Thomas Hug wrote: > > > There's a courier to Switzerland - if you don't mind a

Re: @MappedSuperclass and CriteriaSupport in Data Module

2014-08-26 Thread Thomas Hug
Hi Radu Yes good catch - makes perfectly sense. Do you mind creating a JIRA ticket for that? On Tue, Aug 26, 2014 at 12:15 PM, Radu Creanga wrote: > Hi all, > > Suppose one has an entity class hierarchy, such as when moving auditing > fields into a mapped superclass. > > @MappedSuperclass > @En

Re: DeltaSpike Stickers

2014-08-26 Thread Thomas Hug
There's a courier to Switzerland - if you don't mind a trip to Zürich... ;-) @John, Bartosz will ping you about it. On Tue, Aug 26, 2014 at 9:48 AM, Thomas Andraschko < andraschko.tho...@gmail.com> wrote: > they look really great! > > Can somebody import some of them to germany? :D > > > 2014-08

[jira] [Commented] (DELTASPIKE-420) Transactional repositories

2014-08-25 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-420?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14109749#comment-14109749 ] Thomas Hug commented on DELTASPIKE-420: --- Hmm, if you have the TX managed by

[jira] [Issue Comment Deleted] (DELTASPIKE-683) user criteria() error

2014-08-25 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug updated DELTASPIKE-683: -- Comment: was deleted (was: Does this only fail in the test or also in the container? If

[jira] [Commented] (DELTASPIKE-683) user criteria() error

2014-08-25 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14109046#comment-14109046 ] Thomas Hug commented on DELTASPIKE-683: --- Does this only fail in the tes

[jira] [Commented] (DELTASPIKE-683) user criteria() error

2014-08-25 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14109047#comment-14109047 ] Thomas Hug commented on DELTASPIKE-683: --- Does this only fail in the tes

[jira] [Commented] (DELTASPIKE-687) Let users disable Query Method Expressions

2014-08-18 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14100481#comment-14100481 ] Thomas Hug commented on DELTASPIKE-687: --- You can also go the other way ar

[jira] [Comment Edited] (DELTASPIKE-687) Let users disable Query Method Expressions

2014-08-18 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14100419#comment-14100419 ] Thomas Hug edited comment on DELTASPIKE-687 at 8/18/14 8:3

[jira] [Commented] (DELTASPIKE-687) Let users disable Query Method Expressions

2014-08-18 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14100419#comment-14100419 ] Thomas Hug commented on DELTASPIKE-687: --- Never mind, found your message on

[jira] [Commented] (DELTASPIKE-687) Let users disable Query Method Expressions

2014-08-18 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-687?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14100370#comment-14100370 ] Thomas Hug commented on DELTASPIKE-687: --- Can you be more specific about the

[jira] [Commented] (DELTASPIKE-673) CdiQueryInvocationContext#isNew does not work well with OpenJpa and detached entities

2014-07-16 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063611#comment-14063611 ] Thomas Hug commented on DELTASPIKE-673: --- Hi Philip! The goal would be that

[jira] [Commented] (DELTASPIKE-673) CdiQueryInvocationContext#isNew does not work well with OpenJpa and detached entities

2014-07-16 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063554#comment-14063554 ] Thomas Hug commented on DELTASPIKE-673: --- Fully agree. Beside getIdenti

[jira] [Assigned] (DELTASPIKE-673) CdiQueryInvocationContext#isNew does not work well with OpenJpa and detached entities

2014-07-16 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-673?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug reassigned DELTASPIKE-673: - Assignee: Thomas Hug > CdiQueryInvocationContext#isNew does not work well w

[jira] [Commented] (DELTASPIKE-673) CdiQueryInvocationContext#isNew does not work well with OpenJpa and detached entities

2014-07-16 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14063450#comment-14063450 ] Thomas Hug commented on DELTASPIKE-673: --- Note that you can use EntityMan

[jira] [Assigned] (DELTASPIKE-647) AppScoped abstract repositories doesn't work

2014-07-12 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug reassigned DELTASPIKE-647: - Assignee: Gerhard Petracek (was: Thomas Hug) > AppScoped abstract repositor

[jira] [Commented] (DELTASPIKE-647) AppScoped abstract repositories doesn't work

2014-07-12 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14059921#comment-14059921 ] Thomas Hug commented on DELTASPIKE-647: --- Back to partial beans. Looks like

[jira] [Updated] (DELTASPIKE-647) AppScoped abstract repositories doesn't work

2014-07-12 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-647?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Thomas Hug updated DELTASPIKE-647: -- Attachment: 0001-Failing-PartialBeans-test.patch > AppScoped abstract repositories does

[jira] [Commented] (DELTASPIKE-647) AppScoped abstract repositories doesn't work

2014-07-11 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14058697#comment-14058697 ] Thomas Hug commented on DELTASPIKE-647: --- Wasted too much time trying to

[jira] [Commented] (DELTASPIKE-649) re-visit wls profile

2014-07-10 Thread Thomas Hug (JIRA)
[ https://issues.apache.org/jira/browse/DELTASPIKE-649?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14057417#comment-14057417 ] Thomas Hug commented on DELTASPIKE-649: --- Anyone experience with con

  1   2   >