Only properties defined in org.apache.cayenne.configuration.Constants are
recognized by DI. DataRowStore.SNAPSHOT_CACHE_SIZE_PROPERTY is not one of them.
We were actually going to bring the whole DataDomain configuration process into
DI form the Modeler (perhaps right after M5). For now your be
Of course, thanks. Works!
> Am 16.02.2017 um 21:22 schrieb John Huss :
>
> Use the log4j api. Something like RootLogger.getLogger("org.apache.cayenn
> e.access.QueryLogger").setLevel(Level.INFO)
>
> On Thu, Feb 16, 2017 at 2:53 PM Musall, Maik wrote:
>
>> Hi all,
>>
>> like recommended in
>>
Use the log4j api. Something like RootLogger.getLogger("org.apache.cayenn
e.access.QueryLogger").setLevel(Level.INFO)
On Thu, Feb 16, 2017 at 2:53 PM Musall, Maik wrote:
> Hi all,
>
> like recommended in
> https://cayenne.apache.org/docs/3.0/configuring-logging.html, I use these
> properties to
Hi all,
like recommended in
https://cayenne.apache.org/docs/3.0/configuring-logging.html, I use these
properties to control the logging of SQL:
log4j.logger.org.apache.cayenne.access.QueryLogger = WARN
log4j.logger.org.apache.cayenne = WARN
How would I switch SQL logging on from within the app
Can’t do that, the signature for put is ( String, ).
I've also tried a different method:
builder.addModule( binder -> binder.bindMap( Constants.PROPERTIES_MAP ).put(
DataRowStore.SNAPSHOT_CACHE_SIZE_PROPERTY, 123456 ) );
…where I used an int, doesn’t work either.
- hugi
> On 16. feb. 2017, a
Maybe try using an int instead of the string "123456"?
On Thu, Feb 16, 2017 at 2:00 PM Hugi Thordarson wrote:
> Hi all,
> I’m attempting to change the size of the snapshot cache in code (not in
> the project xml-file). It seems this should be set through a property,
> right? Well, I’m just not m
Hi all,
I’m attempting to change the size of the snapshot cache in code (not in the
project xml-file). It seems this should be set through a property, right? Well,
I’m just not managing to set properties in code. I’ve set properties in code
previously using something like the below, but they jus