Re: How to define a raw sql in the datamap.xml file and use it through SQLTemplate

2016-12-21 Thread Dzmitry Kazimirchyk
Hello Kumar, Currently it is not possible to extract a query defined in the datamap as an SQLTemplate query instance. MappedSelect is a separate type of query which represents all the query types that can be defined in the datamap and the idea behind it is that after defining your query in t

Re: Null Handling in CAY-1860

2014-02-22 Thread Dzmitry Kazimirchyk
I think I've reported something similar already: https://issues.apache.org/jira/browse/CAY-1877 Perhaps this can be updated with additional details. Dima On 02/22/2014 12:50 PM, Andrus Adamchik wrote: Sounds like a bug. Could you open a Jira please? Thanks, Andrus On Feb 22, 2014, at 1:33 A

Re: Cayenne 3.1M2 cannot locate Configuration file "..conf/UntitledDomain.xml" is not found.

2011-08-18 Thread Dzmitry Kazimirchyk
On 08/18/2011 02:03 PM, Andrus Adamchik wrote: Now unfortunately there's a glitch with rebinding ResourceLocator in this way (or at least I think there is, I haven't tried a test to reproduce it) - in addition to loading user XML files, the default ResourceLocator is also used to load DbAdapter

Re: Configuring listener for all db Classes

2011-08-04 Thread Dzmitry Kazimirchyk
On 08/04/2011 03:03 PM, Dzmitry Kazimirchyk wrote: Both pre-persist and pre-update events were triggered correctly calling corresponding listener methods. Just to clarify this, listener was tested separately for entity and for DataMap.

Re: Configuring listener for all db Classes

2011-08-04 Thread Dzmitry Kazimirchyk
Hi Joe, Behaviour that you've described seems little bit strange to me. Trying to reproduce it I've written following: ObjEntity in my map.xml: dbEntityName="Artist"> db-attribute-path="NAME"/> Also I registered same listener for DataMap. The listener class itself: public class