<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.java.cayenne.user">
    <title>gmane.comp.java.cayenne.user</title>
    <link>http://blog.gmane.org/gmane.comp.java.cayenne.user</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15331"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15319"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15311"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15309"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15302"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15301"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15291"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15285"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15282"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15271"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15270"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15262"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15260"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15253"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15242"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15239"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15223"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15222"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15212"/>
        <rdf:li rdf:resource="http://comments.gmane.org/gmane.comp.java.cayenne.user/15205"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15331">
    <title>java.lang.IllegalArgumentException: Consecutive slashes in path</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15331</link>
    <description>&lt;pre&gt;One of my customers wanted to view my Cayenne 1.1 model as an ER
Diagram under windows, so I upgraded the model using Cayenne modeler
3.0, then 3.1B2, all under linux.

I then emailed them the simplified model and told them to view it
using Cayenne 3.1B2 (under windows).

They get this error when they open the model.
I also installed Cayenne 3.1B2-win and got the same error under Windows 7.

Looks like it's related to perferences -- I'm not sure if it has
anything to do with this particular model.

CayenneModeler Info
Version: 3.1B2
Build Date: Feb 07 2013 18:36:43
Exception:
==============================
===
java.lang.IllegalArgumentException: Consecutive slashes in path
        at java.util.prefs.AbstractPreferences.node(Unknown Source)
        at java.util.prefs.AbstractPreferences.node(Unknown Source)
        at java.util.prefs.AbstractPreferences.node(Unknown Source)
        at java.util.prefs.AbstractPreferences.node(Unknown Source)
        at java.util.prefs.AbstractPreferences.node(Unknown Source)
 &lt;/pre&gt;</description>
    <dc:creator>Mike Kienenberger</dc:creator>
    <dc:date>2013-05-20T17:35:05</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15319">
    <title>ROP security</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15319</link>
    <description>&lt;pre&gt;We have a ROP Cayenne application we'd like to lock down a bit more tightly. In particular, in a situation where we don't trust the client application hasn't been hacked, we'd like to restrict certain activity from the client. I'm thinking of:

1. preventing SQLTemplate/EJBQL queries completely
2. adding entity listeners to catch certain write behaviour (we can't do a lot about reading data since that's easy to do at the controller level, on the client, but pretty hard to construct rules at the model level on the server)
3. creating 'partial' object entities which are missing some attributes. Sort of hollow, but only hollow on some attributes.


Has anyone attempted anything similar to the above? (2) should be easy enough, but not sure about the other requirements.


Cheers
Ari




&lt;/pre&gt;</description>
    <dc:creator>Aristedes Maniatis</dc:creator>
    <dc:date>2013-05-15T23:49:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15311">
    <title>Change data by an external process (non cayenne)</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15311</link>
    <description>&lt;pre&gt;Hi,

is there really no better way than described here:
http://markmail.org/message/plnaj4zj4gxrt6hk

regards
Meex
&lt;/pre&gt;</description>
    <dc:creator>Markus Reich</dc:creator>
    <dc:date>2013-05-15T13:28:29</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15309">
    <title>Prefetch paths</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15309</link>
    <description>&lt;pre&gt;Hi,

is it possible to use wildcards in prefetch paths?

e.g. query.addPrefetch("paintings.gallery");

regards
Meex
&lt;/pre&gt;</description>
    <dc:creator>Markus Reich</dc:creator>
    <dc:date>2013-05-15T12:48:15</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15302">
    <title>Disabling caching for relationship queries</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15302</link>
    <description>&lt;pre&gt;Hi,

is there a possibility to disable the default cayenne caching mechanism
used to get relational data?
I already set Shared Cache to false and Number of Objects to 0, but it
still doesn't work :-(

regards
Meex
&lt;/pre&gt;</description>
    <dc:creator>Markus Reich</dc:creator>
    <dc:date>2013-05-08T11:37:17</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15301">
    <title>Cayenne training day, Montreal, June 23rd</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15301</link>
    <description>&lt;pre&gt;Hi everyone,

A reminder about the Cayenne Training Day at WOWODC in Montreal on June 23rd:

  http://www.wocommunity.org/wowodc13/cayenne.html

You can buy tickets for just the Cayenne day (not the entire WOWODC). There will be references to WebObjects in my presentations as we'll be discussing Cayenne as an alternative to proprietary Apple technologies. But otherwise (and except for the first segment) it will be pure Cayenne. 

BTW, thanks to all those who answered the earlier survey! :)

Andrus





&lt;/pre&gt;</description>
    <dc:creator>Andrus Adamchik</dc:creator>
    <dc:date>2013-05-06T19:07:23</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15291">
    <title>Dynamic datasource switch</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15291</link>
    <description>&lt;pre&gt;Hi.

I have 3 databases which shares exactly the same schema.
I sometimes need to switch from one to another programatically.

For that purpose, i wrote the folowing code :

    public void setCompany(int salesAgencyId) {
        this.salesAgencyId = salesAgencyId;
        switch (salesAgencyId) {
            case COMPANY_C1:
                setC1DataContext();
                break;
            case COMPANY_C2:
                setC2DataContext();
                break;
            case COMPANY_C3:
                setC3DataContext();
                break;

            default:
                setC1DataContext();
                break;
        }
    }

    private static void setC1DataContext() {
        if (COMPANY_CURRENT != COMPANY_C1) {
            LOG.debug("switching context from " + COMPANY_CURRENT + " to
" + COMPANY_C1);
            COMPANY_CURRENT = COMPANY_C1;
            getDataContext().getQueryCache().clear();
            getDataContext().getObjectStore().getDataRowCache().clear();

           
&lt;/pre&gt;</description>
    <dc:creator>Sébastien Pérès-Labourdette</dc:creator>
    <dc:date>2013-04-26T12:21:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15285">
    <title>Revert object changes without rollback</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15285</link>
    <description>&lt;pre&gt;Hi,

is it possible to revert changes of an object? I don't want to use rollback
because changes of other objects shouldn't be reverted?
I know about child contexts, but my problem is, i select a collection of
object, and change them in a differnt UI view and in this view I want to
revert the changes?
Is it possible to create a child context and move an object from one
context to another (child) context?

Meex
&lt;/pre&gt;</description>
    <dc:creator>Markus Reich</dc:creator>
    <dc:date>2013-04-24T18:37:56</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15282">
    <title>Peer Context Synchronization</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15282</link>
    <description>&lt;pre&gt;Hey all, I'm having some trouble with something that I _think_ should work.
:)

It's a very common pattern for me to create a new context, do work, save,
and expect those changes to make it back into peer contexts that share
object ids.

However, there are times where this isn't happening…and it's intermittent.

My model in this situation is pretty simple, there's EntityA with a to-many
to EntityB.  In a peer context, I'm creating an EntityB and adding it to
the relationship of EntityA (a local instance), and generally speaking, in
my other peer context the matching instance of EntityA is updated and has
the proper EntityB in it's relationship (after commitChanges).

However, occasionally…maybe 1 in 10, the peer context doesn't get
immediately updated (although will, I believe, at a later time).

So the question is, does commitChanges immediately/synchronously push all
changes into peer contexts?  Or does it happen in another way?

Thanks for any insight.

-Lon
&lt;/pre&gt;</description>
    <dc:creator>Lon Varscsak</dc:creator>
    <dc:date>2013-04-24T18:14:39</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15271">
    <title>Unit Testing cayenne apps</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15271</link>
    <description>&lt;pre&gt;Hi, I'm using cayenne as persistence layer.

The project is builded with maven and developed with Eclipse.

The DB is migrated using flyway (http://flywaydb.org/) and I'm using
different DBs config for:

 * production
 * development
 * testing

So, for migrations, deployment, continuous integration and anything that
relies on maven I'm using maven "filtering" capabilities to define the jdbc
url of the database to be used.

BUT when I'm working at eclipse, and try to run my tests / startup my
webapp, I cant filter the project resources (not automatically at least)
So currently I'm copy-pasting my cayenne conf from src/main/resources/db to
src/test/resources/db... and I'm not happy with this solution, I feel it
smelly, propense to failure, it's ugly, very ugly!

I did try to only define the cayenne config at testing resources, but when
I do that, it doesn't find the mapping xml.

Is there a way con pass the mapping path instead of a mapping name to a
cayenne config?

Can someone point me what should be done to&lt;/pre&gt;</description>
    <dc:creator>Juan José Gil</dc:creator>
    <dc:date>2013-04-23T12:05:00</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15270">
    <title>Relationship</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15270</link>
    <description>&lt;pre&gt;Hi,

with the wonderful Cayenne Modeler it's possible to easily create relations
between DB entities.
In my case I have a central table for comments, with a key specifying the
content.
No I need to map this key field to a constant literal, as I know it is just
possible to join fields with fields of the target entity :-(
Is there a workaround (I don't like to make a lot of views an join them ;-))

regards
Meex
&lt;/pre&gt;</description>
    <dc:creator>Markus Reich</dc:creator>
    <dc:date>2013-04-23T04:49:03</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15262">
    <title>Convert Oracle Type NUMBER to java.lang.Boolean</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15262</link>
    <description>&lt;pre&gt;Hi,

I've a problem with using boolean values in my cayenne class.
In Oracle DB the field has type NUMBER and contains only 0 or 1 as value.
Now I thought I can map this to a Boolean?
I came to this because it also works when I select with an Expression:
ExpressionFactory.matchExp(MiiPickingcontainer.DELETED_PROPERTY, false));

But when I make a check with getDeleted()==false, it doesn't work as
getDeleted() always returns false?

What would be the best approach to transform a Oracle NUMBER to a Boolean?

Markus
&lt;/pre&gt;</description>
    <dc:creator>Markus Reich</dc:creator>
    <dc:date>2013-04-22T08:51:12</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15260">
    <title>Multiple isolated cayenne runtimes... (Cayenne &gt;= 3.1)</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15260</link>
    <description>&lt;pre&gt;All,

what would a possible scenario of running multiple isolated Cayenne 
instances, actually quite the opposite of grouping multiple nodes under 
a domain. Let's say i have multiple datasources all pointing to 
different databases on different servers where every 'project' is 
completely isolated from all others, there is no shared data between 
those. At first sight i was asking myself if i should just setup and run 
multiple ServerRuntimes, would this even be possible? Would this be a 
valid approach?

The configuration of 0..n projects should possibly be changeable at 
runtime too with a higher level 'ProjectManager' that i would have to 
implement to steer the runtimes.

Thanks for your thoughts!

Cheers,
Daniel


&lt;/pre&gt;</description>
    <dc:creator>Daniel Scheibe</dc:creator>
    <dc:date>2013-04-20T08:40:27</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15253">
    <title>Webapplication with 2 ObjectContexts</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15253</link>
    <description>&lt;pre&gt;Hi,

is it possible to create a second context to make an atomic update to an
object not disturbing the main context?

e.g.
in the application you can change data in a fom, there are two buttons
"save" and "revert"
by the way the user can add comments to the form, when he clicks add
comment a popup opens he can enter a text and this text should be saved,
but when I do a commit, the data changes in the form are also commited :-(

regards
Meex
&lt;/pre&gt;</description>
    <dc:creator>Markus Reich</dc:creator>
    <dc:date>2013-04-19T19:49:40</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15242">
    <title>SQLTemplate problems in 3.1B2</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15242</link>
    <description>&lt;pre&gt;I'm trying to use SQLTemplate queries and running into a strange problem. This snippet works fine if I run it in a plain Java application, but fails if I then use it within a web service running under Glassfish.
In both cases I am using the same cayenne metadata files. I have also noticed the same issue when using EJBQL queries.


ServerRuntime cayenneRuntime = new ServerRuntime("cayenne-cayenne-service-template.xml");
ObjectContext context = cayenneRuntime.getContext();


SQLTemplate  sql = new SQLTemplate(Accessorial.class,"SELECT * FROM live.tbl_accessorials");
String pgSql = "SELECT * FROM live.tbl_accessorials";
sql.setTemplate(PostgresAdapter.class.getName(), pgSql);
Collection&amp;lt;Accessorial&amp;gt; accessorials = context.performQuery(sql);


I have tried this both with and without the Postgres specific template - same result either way. Works fine in a console app, fails running under the web server.

This seems to be the relevant section of the stack trace:

Caused by: java.lang.NoClassDefFoundError: org/apac&lt;/pre&gt;</description>
    <dc:creator>Rick Bonnett</dc:creator>
    <dc:date>2013-04-16T12:38:22</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15239">
    <title>cayenne in central repo?</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15239</link>
    <description>&lt;pre&gt;So I just checked the central maven repo for cayenne and the latest version there is 3.1M3… but we're voting on 3.2M1, which ought to mean that 3.1 has been released. Is 3.1 available in any maven repo?

Robert
&lt;/pre&gt;</description>
    <dc:creator>Robert Zeigler</dc:creator>
    <dc:date>2013-04-16T05:28:52</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15223">
    <title>Problem with type: long[]</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15223</link>
    <description>&lt;pre&gt;Hi,

I'm now using cayenne for a while. Currently I run version 3.0.2 but
3.1M3 seems to have the same problem.
I want to save an array as a blob in the database. When I'm using the
type int[] or char[] or double[] everything is ok.
But I need an array of the type long[]. Cayenne writes this array as the
object reference into the database, but it does not write the content of
the array into the field.

Greetings
Kris Erik Schwerdt.

&lt;/pre&gt;</description>
    <dc:creator>Kris Erik Schwerdt</dc:creator>
    <dc:date>2013-03-22T12:53:20</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15222">
    <title>[ann] Cayenne training day in Montreal on June 23</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15222</link>
    <description>&lt;pre&gt;I am happy to announce that the organizers of WOWODC conference invited us to do a whole day of Cayenne presentations and training:

http://www.wocommunity.org/wowodc13/cayenne.html

This will happen on June 23, 2013 in Montreal, Canada. 

You can register and buy tickets just for the Cayenne part of the conference on the web site. Generally WOWODC is about Apple WebObjects technology, which was a large inspiration for Cayenne back in the day. So I am planning to be making quite a few WebObjects references during the presentations. But even if you don't care about WebObjects, and just want to hear about Cayenne, you won't be bored: the new 3.1 stuff will be covered, like dependency injection, advanced lifecycle events, etc. Also a few interesting topics not specific to 3.1, like caching.

We started an anonymous survey here:

https://www.survs.com/survey/167A2CSKM8

to collect information about the interests of potential attendees, so that we can tweak the presentations better. If you have 5 minutes to fill &lt;/pre&gt;</description>
    <dc:creator>Andrus Adamchik</dc:creator>
    <dc:date>2013-03-21T16:52:30</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15212">
    <title>Get ObjectId of To-One Relationship Without Faulting</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15212</link>
    <description>&lt;pre&gt;Is there any way to get the ObjectId or raw foreign key of a related object without faulting? I'd like to implement getArtistObjectId() or getArtistPK() without calling getArtist().getObjectId() or Cayenne.longPKForObject(getArtist()).

Thanks,

David&lt;/pre&gt;</description>
    <dc:creator>David Feshbach</dc:creator>
    <dc:date>2013-03-06T17:38:11</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15205">
    <title>Lifecycle Listeners / cayenne-3.1B1</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15205</link>
    <description>&lt;pre&gt;All,

i'm trying to get the lifecycle listeners working for my use case and i've
come accross a problem. I registered a listener to do some extra stuff for
an entity whenever it will be persisted (prePersist) via:

callbackRegistry.addListener(LifecycleEvent.PRE_PERSIST, Content.class,
"prePersist");

This get's called as expected and works smoothly.

Now whenever i have the scenario of a CommitException thrown during
commitChanges() (for whatever reason, underlying database not available,
etc.) i need to revert some of the stuff i did in the "prePersist"
lifefycle callback on the object in question.

Unfortunately i haven't had luck yet to register a lifecycle listener that
will be called in case of a "rollback" through "rollbackChanges".

The documentation states something about "PostLoad" being called "Within
"ObjectContext.rollbackChanges()" after the object is reverted." (although
this is from 3.0 i guess it should still apply?
https://cayenne.apache.org/docs/3.0/lifecycle-callbacks.html)

Is there any &lt;/pre&gt;</description>
    <dc:creator>Daniel Scheibe</dc:creator>
    <dc:date>2013-03-05T15:43:13</dc:date>
  </item>
  <item rdf:about="http://comments.gmane.org/gmane.comp.java.cayenne.user/15190">
    <title>ServerRuntime Best Practice? [3.1]</title>
    <link>http://comments.gmane.org/gmane.comp.java.cayenne.user/15190</link>
    <description>&lt;pre&gt;Is there an existing place (class) in 3.1 to stuff a ServerRuntime instance
for global use or is it expected that you'll create a separate class to
hold a static instance variable of ServerRuntime?

Thanks,

mrg
&lt;/pre&gt;</description>
    <dc:creator>Michael Gentry</dc:creator>
    <dc:date>2013-02-28T14:43:26</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.java.cayenne.user">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.java.cayenne.user</link>
  </textinput>
</rdf:RDF>
