Re: Disable of auto-generated pk

2012-09-07 Thread Andrus Adamchik
> I can't update to cayenne 3.1 (btw.. is it stable? I could not find the > information on the site, but the branch is marked as STABLE) Yes, it is in Beta, meaning complete API freeze and only bugfix related changes. > I downloaded the sources of cayenne 3.0, compiled with maven (from command

Re: Disable of auto-generated pk

2012-09-07 Thread Francesco Romano
I've already seen those pages.. So there is nothing "ready" Further more.. I can't update to cayenne 3.1 (btw.. is it stable? I could not find the information on the site, but the branch is marked as STABLE)... I downloaded the sources of cayenne 3.0, compiled with maven (from command line)

Re: Disable of auto-generated pk

2012-09-07 Thread Andrus Adamchik
> So.. the question becomes: how can I integrate Cayenne in an OSGi Environmnet? I wish I'd get myself into an OSGi project to have some motivation to familiarize myself with OSGi-related issues :) For now, there are various degrees of interest and an intent to help from different folks, but no

Re: Prefetching Question

2012-09-07 Thread Aristedes Maniatis
You need to do the prefetching as part of a query. I don't think it can be done while just following a relation like this. Ari On 7/09/12 5:24pm, do...@xsinet.co.za wrote: Thanks Ari, that works great. Say now the Paintings table or Hobbies table has a field eg: Notes that i'm interested in.

Re: Prefetching Question

2012-09-07 Thread dollj
Ah :-) I figured it out ... didn't know that one could 'flatten' class field attributes as well: Highlight the attribute in the class definition and click on the [I] icon (Edit Attribute). Then select the desired path. Neat ! Thanks, great stuff. > Thanks Ari, that works great. > > Say now t

Re: Disable of auto-generated pk

2012-09-07 Thread Francesco Romano
Ok.. I found the problem.. It is not related to Cayenne, but to our environment. So.. the question becomes: how can I integrate Cayenne in an OSGi Environmnet? Francesco On Sep 6, 2012, at 5:00 PM, Francesco Romano wrote: > Hi everybody. > > I have a problem with cayenne. > I migrated a table

Re: Prefetching Question

2012-09-07 Thread dollj
Thanks Ari, that works great. Say now the Paintings table or Hobbies table has a field eg: Notes that i'm interested in. Then flattening won't work i suppose ? How would you prefetch then, if no prefetching is done on the original Artist or Person query ? Thanks. > On 6/09/12 8:54pm, do...@xsi