Instability on ObjRelationships

2012-08-21 Thread Bruno René Santos
were always a little unreliable but most of the time worked, now on 3.1B1 I decided to drop them altogether as I spend a lot of time trying to use them. Any work has been done recently on that area? Regards Bruno -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista

Re: onPostAdd is called on CommitChanges...

2012-07-05 Thread Bruno René Santos
gt; > Andrus > > On Jul 5, 2012, at 4:03 PM, Bruno René Santos wrote: > > > Here it goes: > > > > MyClass.onPostAdd: 19 > > Hidden Source Calls > > Method.invoke: 601 > > CallbackOnEntity.performCallback: 46 > > LifecycleCallbackEventHander.perfo

Re: onPostAdd is called on CommitChanges...

2012-07-05 Thread Bruno René Santos
:17 PM, Andrus Adamchik wrote: > I guess you had an attachment here that was stripped off by the list > managing software. Can you post it as text? > > On Jul 5, 2012, at 11:43 AM, Bruno René Santos wrote: > > > Here goes the callstack for this problem when

Fwd: onPostAdd is called on CommitChanges...

2012-07-05 Thread Bruno René Santos
Here goes the callstack for this problem when I call commitChanges() -- Forwarded message -- From: Bruno René Santos Date: Thu, Jul 5, 2012 at 12:27 AM Subject: onPostAdd is called on CommitChanges... To: user@cayenne.apache.org I am using Cayenne 3.1B1 and when I call

onPostAdd is called on CommitChanges...

2012-07-04 Thread Bruno René Santos
I am using Cayenne 3.1B1 and when I call commitChanges the callback postAdd on one of my objects is called? Anyone can guess why? Regards Bruno -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avançadas em Tecnologias de

Re: DataContexts mixed

2012-04-02 Thread Bruno René Santos
to commit those to the database with a join to the parent. Ugh. > > Ari > > > -- > --> > Aristedes Maniatis > GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A > > -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | An

DataContexts mixed

2012-03-30 Thread Bruno René Santos
at has the objectcontext different from the current context but I would like to know how to solve this without using this kind of 'subterfuges'. Regards Bruno Santos -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avan

Disable JdbcCommonLogger

2012-03-29 Thread Bruno René Santos
Bruno -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avançadas em Tecnologias de Informação S.A. Parque de Ciência e Tecnologia de Almada/Setúbal . Edifício Madan Parque Rua dos Inventores . Quinta da Torre . 2825 - 182

Using EhCache

2012-03-29 Thread Bruno René Santos
Hello all, I am trying to use EhCache on my updated app. Anyone has an example of a ehcache.xml that works well with Cayenne and where will I put it? I have also read that EhCache doesn't have groups... Is there an alternative? Regards Bruno -- Bruno René Santos | brunor...@holos.pt | G

Turn off CommonsJdbcEventLogger

2012-03-28 Thread Bruno René Santos
Hello all, How can I put CommonsJdbcEventLogger (from Cayenne 3.1) on INFO level? Regards Bruno Santos -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avançadas em Tecnologias de Informação S.A. Parque de Ciência e

Re: Cayenne 3.1 DI - binding

2012-03-28 Thread Bruno René Santos
e > specifics right now since the property names changed recently. Or you can > set it in CayenneModeler. > > John > > On Wed, Mar 28, 2012 at 10:50 AM, Bruno René Santos >wrote: > > > Hello all, > > > > I am migrating my apps to cayenne 3.1 and I have s

Cayenne 3.1 DI - binding

2012-03-28 Thread Bruno René Santos
(new HolosContextFactory()); } } I noticed now that the 3.0 DBAdapters are gone from the Modeler and so How can I: 1. Bind these adapters 2. Bind ExtendedTypes Can I include these new bindings on the same Module? Regards Bruno Santos -- Bruno René Santos | brunor...@holos.pt | Gestor de

Re: Migrating to cayenne 3.1

2012-02-24 Thread Bruno René Santos
ndrus Adamchik wrote: > > I have jdk 1.7.02. Could it be because of that? > > yes. you need java 1.6. > > On Feb 24, 2012, at 4:54 PM, Bruno René Santos wrote: > > > Hi Andrus, > > > > I used maven but I got the following errors: > > > > [ERROR] > &

Re: Migrating to cayenne 3.1

2012-02-24 Thread Bruno René Santos
ng. Please check out these instructions: > > http://cayenne.apache.org/building-cayenne.html > > Cheers, > Andrus > > > On Feb 24, 2012, at 2:03 PM, Bruno René Santos wrote: > > > Hi Andrus, > > > > I have checked out cayenne from the svn and the > >

Re: Migrating to cayenne 3.1

2012-02-24 Thread Bruno René Santos
> > Cheers, > Andrus > > > On Feb 24, 2012, at 2:03 AM, Bruno René Santos wrote: > > > Hi John, > > > > > > There is no newInstance() method to override on DataContextFactory... are > > you sure this is the right way? > > > > Regards >

Re: Migrating to cayenne 3.1

2012-02-23 Thread Bruno René Santos
> > Then reference your module when creating the CayenneRuntime: > > ServerRuntime localRuntime = new > ServerRuntime("cayenne-MyDomain.xml", newAppModule()); > > John > On Thu, Feb 23, 2012 at 11:28 AM, Bruno René Santos >wrote: > > > Hello all, > > > &

Migrating to cayenne 3.1

2012-02-23 Thread Bruno René Santos
Hello all, I am trying to migrate my web application from 3.0.1 to 3.1M3. My main problem now is that I usually use a custom DataContext in my Apps. In 3.0.1 I would use the DataContextFactory (defined on the modeler) to configure the use of the custom class. How do I do that on 3.1? Regards Brun

Bug delete rules - Cascade & Deny

2012-02-22 Thread Bruno René Santos
Hello all, On version 3.0.1 i have just found out a problematic behaviour. If on the modeler we have a DB structure like this (with delete rules included): A -> bArray (Cascade) -> B -> cArray (Deny) The first time we try to delete A the DeleteDenyException happens but the second time it doesn't

Re: "Can't extract a master key" error

2011-11-19 Thread Bruno René Santos
e time tonight or over > the weekend I could examine it. > > mrg > > > On Fri, Nov 18, 2011 at 8:15 AM, Bruno René Santos > wrote: > > Hi Michael, > > > > They are all AUTO INCREMENT from MySQL. But when I check the queryLogger > > this happens beca

Re: "Can't extract a master key" error

2011-11-18 Thread Bruno René Santos
t; > mrg > > > On Fri, Nov 18, 2011 at 5:15 AM, Bruno René Santos > wrote: > > Hi Michael, > > > > We dont have cyclic tables but we have some redundant paths like: > > > > A -> B -> C -> D > > > > A -> E -> C -> D > &g

Re: "Can't extract a master key" error

2011-11-18 Thread Bruno René Santos
lic tables. Something like: > > Table A -> Table B -> Table C -> Table D -> Table A > > Given this situation, Cayenne isn't able to properly do the inserts. > I *believe* this only applies to using autogenerated keys (are you > using MySQL?), though. > > mr

"Can't extract a master key" error

2011-11-17 Thread Bruno René Santos
e of the Object Graph or something like that? Regards Bruno Santos -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avançadas em Tecnologias de Informação S.A. Parque de Ciência e Tecnologia de Almada/Setúbal . Edifício Madan Pa

Re: [OT] You're all a bunch of Cake Mixers

2011-10-19 Thread Bruno René Santos
at 6:54 AM, Bruno René Santos > wrote: > > Come on, > > calling .save() for each object and being worried about in what order you > do > > it is just too much work (I know this is JPA fault but even so...). > > -- Bruno René Santos | brunor...@holos.pt | Gestor de P

Re: [OT] You're all a bunch of Cake Mixers

2011-10-19 Thread Bruno René Santos
). Regards and sorry again for the off-topic Bruno On Wed, Oct 19, 2011 at 11:04 AM, Hugi Thordarson wrote: > Hey, Cayenne Developers! Stop destroying our joy of programming! > > http://vimeo.com/28885655 > > - hugi > > PS: Sorry for the off topic post, couldn't resist

Re: equal(Obj) and hashCode()

2011-10-13 Thread Bruno René Santos
g from different contexts). And your implementation is not correct from > the Cayenne POV (it doesn't take context into account) and will likely cause > other problems. > > Cheers, > Andrus > > On Oct 13, 2011, at 1:53 PM, Bruno René Santos wrote: > > > Hello all, >

equal(Obj) and hashCode()

2011-10-13 Thread Bruno René Santos
ards Bruno Santos -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avançadas em Tecnologias de Informação S.A. Parque de Ciência e Tecnologia de Almada/Setúbal . Edifício Madan Parque Rua dos Inventores . Quinta da Torre .

ClassCastException: PersistentObjectSet as PersistentObject

2011-09-26 Thread Bruno René Santos
. Is this a bug? Regards Bruno Santos -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avançadas em Tecnologias de Informação S.A. Parque de Ciência e Tecnologia de Almada/Setúbal . Edifício Madan Parque Rua dos Inventores

Re: Complex RelationShip in Modeler vs in Code

2011-09-26 Thread Bruno René Santos
query.addPrefetch(Source.FLATTENED_TARGETS_PROPERTY); > 2) Add a cover method in Source.java to fetch Targets lazily and not > even model the flattened relationship. > > Hope that helps for now. > > mrg > > On Fri, Sep 23, 2011 at 12:17 PM, Bruno René Santos wrote: >> Hi

Re: Complex RelationShip in Modeler vs in Code

2011-09-23 Thread Bruno René Santos
s is going to give you read-only > records, which may not be what you are wanting. > > mrg > > > On Fri, Sep 23, 2011 at 9:21 AM, Bruno René Santos > wrote: > > Hi Michael I dont know if we are talking about the same thing but what I > did > > was use th

Re: Complex RelationShip in Modeler vs in Code

2011-09-23 Thread Bruno René Santos
> sure you are using the right property names and syntax in > readNestedProperty(). > > Thanks, > > mrg > > > On Wed, Sep 21, 2011 at 10:49 AM, Bruno René Santos > wrote: > > Hello all, > > > > I have created a complex relationship within the Modele

Complex RelationShip in Modeler vs in Code

2011-09-21 Thread Bruno René Santos
ese relationships within the modeler updated? And how they relate to the comparable java call? Thanx Bruno -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avançadas em Tecnologias de Informação S.A. Parque de Ciência e Tecnologia

Re: Webservice and Cayenne

2011-08-24 Thread Bruno René Santos
vm > on client side). > > In particular there I've seen some discussions about using DTO's and custom > template generation. I'm especially interested in how this is accomplished. > > Anyone care to comment? > > > Tony Giaccone > -- Bruno René Santos | brunor.

Re: weird PK generation

2011-08-02 Thread Bruno René Santos
0.1 and 3.0.2 difference, but generally such problem > is caused by missing "To Dep PK". Do you have "To Dep PK" checked for the > failing relationship? > > Andrus > > On Aug 1, 2011, at 12:21 AM, Bruno René Santos wrote: > > > Hi Michael, > > >

Re: weird PK generation

2011-07-31 Thread Bruno René Santos
try doing commitChanges() instead of > commitChangesToParent()? Just curious if the child context could be > in play here. > > Thanks, > > mrg > > > On Sun, Jul 31, 2011 at 1:41 PM, Bruno René Santos > wrote: > > Hi Michael, > > > &

Re: weird PK generation

2011-07-31 Thread Bruno René Santos
e default > and see if that clears it up. Also, I'm assuming you are skipping the > option of creating the DB schema on startup if missing? (This would > try to create the AUTO_PK_SUPPORT table if missing.) > > mrg > > > On Sun, Jul 31, 2011 at 5:08 AM, Bruno René Santos

weird PK generation

2011-07-31 Thread Bruno René Santos
3.0.2 Regards Bruno Santos -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avançadas em Tecnologias de Informação S.A. Parque de Ciência e Tecnologia de Almada/Setúbal . Edifício Madan Parque Rua dos Inventores . Quinta da

Re: Cayenne 3.0.2 source code tar is corrupt

2011-07-21 Thread Bruno René Santos
I have just tried that link you gave me and the file has the same md5. and still it gives the error on the tar Bruno On Thu, Jul 21, 2011 at 10:35 AM, Aristedes Maniatis wrote: > On Thu Jul 21 19:09:34 2011, Bruno René Santos wrote: > >> I get this on the tar >> >> tar:

Cayenne 3.0.2 source code tar is corrupt

2011-07-21 Thread Bruno René Santos
I get this on the tar tar: Cannot open -: Bad file descriptor tar: Error is not recoverable: exiting now http://mirrors.fe.up.pt/pub/apache//cayenne/cayenne-3.0.2-src.tar.gz Regards Bruno -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista | Programador | Investigador

Re: Cayenne 3.0.2 distribution

2011-07-19 Thread Bruno René Santos
re certainly JARs present in the distribution. Did you > download the correct file? > > Thanks, > > mrg > > > On Tue, Jul 19, 2011 at 10:45 AM, Bruno René Santos > wrote: > > Hello all, > > > > I dont know if this is correct but the Linux binary distrib

Cayenne 3.0.2 distribution

2011-07-19 Thread Bruno René Santos
Hello all, I dont know if this is correct but the Linux binary distribution on the site only has the compiled classes and no jars... And the source code raises some kind of error when I try to decompress it on windows... Regards Bruno Santos -- Bruno René Santos | brunor...@holos.pt | Gestor

Re: Limits & Joins on Oracle

2011-06-29 Thread Bruno René Santos
t; > > On Tue, Jun 21, 2011 at 5:32 PM, Bruno René Santos > wrote: > > Hello all, > > > > Any more ideas on this subject? Andrus or Gentry could you please > dissolve > > these doubts about the possibility of using aliases on the column names? > > > >

Fwd: Limits & Joins on Oracle

2011-06-21 Thread Bruno René Santos
Hello all, Any more ideas on this subject? Andrus or Gentry could you please dissolve these doubts about the possibility of using aliases on the column names? Thanx a lot BRuno -- Forwarded message -- From: Bruno René Santos Date: Tue, Jun 14, 2011 at 6:18 PM Subject: Re

Oracle vs Cayenne - Fetch Limit, Offsets & cache

2011-06-21 Thread Bruno René Santos
) when I call it with the offset 20... Any ideas? Bruno -- Bruno René Santos | brunor...@holos.pt | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avançadas em Tecnologias de Informação S.A. Parque de Ciência e Tecnologia de Almada/Setúbal . Edifício Madan Parque Rua

Re: Oracle Sequences & Cache

2011-06-21 Thread Bruno René Santos
wrote: > > > > >ORACLE > > > PK_CONTACT_PERSON_KEY_SEQ > >1 > > > > Yep, that's the trick to map a sequence with increment of 1. On the Modeler > side it is configured here: > > http://people.apache.org/~aadamchik/

Oracle Sequences & Cache

2011-06-16 Thread Bruno René Santos
on the PK generation phase on cayenne no data, always, should be ever retrieved from the cache, which would lead to repeated primary keys... Can this be true? Thanx Bruno -- Bruno René Santos | brunor...@holos.pt <mailto:brunor...@holos.pt> | Gestor de Projectos | Analista | Progr

Re: Limits & Joins on Oracle

2011-06-14 Thread Bruno René Santos
tion as queries returning tables with equivalently named non-join columns would return incorrect results. Although the quick hack could be used to figure out if the above analysis is correct ;) I hope this helps you guys figure out a solution to Oracle/fetch limit thing. -- Bruno René Sant

Re: Limits & Joins on Oracle

2011-06-14 Thread Bruno René Santos
able to distinguish all columns. Is that feasible? How could I do this change if anybody else do not have the time? Thanx a lot Bruno Em 02-06-2011 14:30, Bruno René Santos escreveu: Yes a regular SelectQuery, with some Expressions possibly Bruno Em 02-06-2011 14:23, Andrus Adamchik escreveu

Re: Limits & Joins on Oracle

2011-06-02 Thread Bruno René Santos
Yes a regular SelectQuery, with some Expressions possibly Bruno Em 02-06-2011 14:23, Andrus Adamchik escreveu: On Jun 2, 2011, at 4:04 PM, Bruno René Santos wrote: query.setFetchLimit(count); Just to clarify - which type of Query? SelectQuery? Andrus -- Bruno René Santos

Re: Limits & Joins on Oracle

2011-06-02 Thread Bruno René Santos
Jun 2, 2011, at 3:19 PM, Bruno René Santos wrote: Here it goes again... Please can anybody help? Thanx Bruno Em 31-05-2011 15:43, Bruno René Santos escreveu: Hello all, I am having a problem with the setFetchLimit on Oracle. When I use joined tables that have fields with the same name i ge

Fwd: Limits & Joins on Oracle

2011-06-02 Thread Bruno René Santos
Here it goes again... Please can anybody help? Thanx Bruno Em 31-05-2011 15:43, Bruno René Santos escreveu: Hello all, I am having a problem with the setFetchLimit on Oracle. When I use joined tables that have fields with the same name i get the error: Error code 918, SQL state 42000

Limits & Joins on Oracle

2011-05-31 Thread Bruno René Santos
Sorry the last message had a wrong subject. here it goes again Em 31-05-2011 15:43, Bruno René Santos escreveu: Hello all, I am having a problem with the setFetchLimit on Oracle. When I use joined tables that have fields with the same name i get the error: Error code 918, SQL state 42000

Re: runtime shutdown

2011-05-31 Thread Bruno René Santos
Hello all, I am having a problem with the setFetchLimit on Oracle. When I use joined tables that have fields with the same name i get the error: Error code 918, SQL state 42000: ORA-00918: column ambiguously defined with a query similar to the next one: select * from ( select tid.*, ROWNUM

Composite Primary Key in Oracle

2011-05-03 Thread Bruno René Santos
that does not exist anywhere Why is it trying to generate a sequence with a default generation behaviour? Thanx Bruno -- Bruno René Santos | brunor...@holos.pt <mailto:brunor...@holos.pt> | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avançadas em Tecno

Re: Querying on Inherited Objects

2011-03-09 Thread Bruno René Santos
angle, ExpressionFactory.noMatch(polygonType, square)) With regards Marcin On 6/03/11 11:18 PM, Bruno René Santos wrote: Both parent and child are the same on the database level. But each object is used differently on the GUI level. As both GUIs must cohexist temporarily I thought I could

Re: Querying on Inherited Objects

2011-03-06 Thread Bruno René Santos
Child... Any way to return a List of Parent? Thanx Bruno Em 06-03-2011 10:15, Aristedes Maniatis escreveu: On 6/03/11 9:03 PM, Bruno René Santos wrote: I have an object structure with a Child dataobject which inherits from a Parent which is linked to a db_entity. I am trying to use the Parent on

Querying on Inherited Objects

2011-03-06 Thread Bruno René Santos
also a list of Children, which are incompatible with the parent GUI. Is there any way that this query returns Parents instead of Children? I was trying these inheritance so that i could reuse all db fields and relationships from the parent on the child. -- Bruno René Santos | brunor...@holos.pt

Re: Error on BaseContext - object is modified when committed is expected

2011-01-24 Thread Bruno René Santos
, Bruno René Santos wrote: I'll try to modify the CommitChanges and CommitChangesToParent in order to create a very short lived context to where I copy all modifiedObjects and deletedObjects in order to commit them. There should be no modified or deleted objects in the shared context. The o

Re: Error on BaseContext - object is modified when committed is expected

2011-01-24 Thread Bruno René Santos
? The problem here is that I have a team of 10 people developing on top of my app and I wanted to minimize the changes on the application in order to migrate to different read and write contexts. Bruno Em 24-01-2011 11:14, Andrus Adamchik escreveu: On Jan 24, 2011, at 1:04 PM, Bruno René Santos

Re: Error on BaseContext - object is modified when committed is expected

2011-01-24 Thread Bruno René Santos
d to cause various consistency issues. I often use a pattern of 1 shared app-scoped DataContext for reads, and then create short-lived throwaway DataContexts to change objects ("short-lived" means a lifespan<= request duration). Andrus On Jan 24, 2011, at 12:35 PM, Bruno René Santos wrot

Re: Error on BaseContext - object is modified when committed is expected

2011-01-24 Thread Bruno René Santos
a web application so it is possible that some thread is interfering on the refreshing of the Object Cache? This depends on how you share a DataContext. If your app is not read-only, DataContext should not be shared. Andrus On Jan 24, 2011, at 12:09 PM, Bruno René Santos wrote: HoVPlanoContas is a view

Re: Error on BaseContext - object is modified when committed is expected

2011-01-24 Thread Bruno René Santos
Any other ideas? Thanx Bruno Em 24-01-2011 09:43, Andrus Adamchik escreveu: Can you confirm that there is a record for HoVPlanoContas in the database with id of 129? Is it reproducible? Andrus On Jan 24, 2011, at 3:03 AM, Bruno René Santos wrote: Hello all, Im having an error when I access

Error on BaseContext - object is modified when committed is expected

2011-01-23 Thread Bruno René Santos
// a race condition, should we handle them here? Why this happens? Any solutions? Thanx Bruno -- Bruno René Santos | brunor...@holos.pt <mailto:brunor...@holos.pt> | Gestor de Projectos | Analista | Programador | Investigador Holos - Soluções Avançadas em Tecnologias de Informação S.A.

Prefetch on a Raw SQL Query on Cayenne Modeler

2011-01-19 Thread Bruno René Santos
Hello all, I have a query defined on the modeler which is fetched to a known data object. Is there any way to perform a join (or prefetch) for another data object that I know I will have to access too? Thanx & Regards Bruno

Re: Left Outer Joins without expressions

2011-01-06 Thread Bruno René Santos
E, t0.PAINTING_TITLE, t1.ARTIST_NAME, t1.DATE_OF_BIRTH, t1.ARTIST_ID FROM PAINTING t0 LEFT JOIN ARTIST t1 ON (t0.ARTIST_ID = t1.ARTIST_ID) ORDER BY t0.PAINTING_ID Andrus On Jan 6, 2011, at 1:37 AM, Bruno René Santos wrote: Hello Andrus, In Mysql the generated join is: ... from table1 join table2 which

Re: Left Outer Joins without expressions

2011-01-05 Thread Bruno René Santos
default (???) Andrus On Jan 5, 2011, at 2:14 AM, Bruno René Santos wrote: Hello all, Is there any way to create a left outer join without using an actual path on the query expressions? I tried something like this: query.addPrefetch(HoTiposFechoContas.TO_HO_TABLE_PROPERTY + "+").se

Left Outer Joins without expressions

2011-01-04 Thread Bruno René Santos
raises an exception because of the concatenated '+' sign. Regards Bruno -- Bruno René Santos | brunor...@holos.pt <mailto:brunor...@holos.pt> | Gestor de Projectos | Analista | Programador | Tech Hunter Holos - Soluções Avançadas em Tecnologias de Informação S.A. Parque de Ciência e Te

RE: Updates with Delta values

2010-11-23 Thread Bruno René Santos
problem. On Tue, Nov 23, 2010 at 12:19 PM, Bruno René Santos wrote: > Hello all, > > > > I doing an update on a hierarchical structures with total values. In order not > to do locks on the fields I wanted to update these values like this: > > > > UPDATE INFO SET TOTAL = TO

Updates with Delta values

2010-11-23 Thread Bruno René Santos
updating totals concurrently without problems. My question is how can I put this kind of structure on a object that is called during the commitChanges phase? Is it even possible? Thanx & Regards Bruno Santos -- Bruno René Santos | Gestor de Projectos - Project Manager | <mailto

RE: Optimistic Locking 2

2010-11-22 Thread Bruno René Santos
enough to know which attributes changed and only send those. mrg On Mon, Nov 22, 2010 at 6:00 AM, Bruno René Santos wrote: > I was seeing the documentation about optimistic locking on Cayenne and this > phrase: > > > > Cayenne is also smart enough to know which values have c

Optimistic Locking 2

2010-11-22 Thread Bruno René Santos
tName)on this records they get changed? My wish was not to change anything on the record until all fields are consistent. Thanx Bruno -- Bruno René Santos | Gestor de Projectos - Project Manager | <mailto:brunor...@holos.pt> brunor...@holos.pt | <http://www.holos.pt> ht

Optimistic Locking

2010-11-22 Thread Bruno René Santos
but i needed to be sure that the information on the objects is not rollbacked but the information on the DB is. Thanx Bruno -- Bruno René Santos | Gestor de Projectos - Project Manager | <mailto:brunor...@holos.pt> brunor...@holos.pt | <http://www.holos.pt> http://

RE: Filtering queries and relationships

2010-11-12 Thread Bruno René Santos
This is a start. Can a qualifier receive a parameter? Like a $accountIds. For each user of the web application the qualifier will be different. Regards Bruno -Mensagem original- De: Aristedes Maniatis [mailto:a...@maniatis.org] Enviada: sexta-feira, 12 de Novembro de 2010 08:47 Para: use

Using query results on relatioships

2010-11-09 Thread Bruno René Santos
Hello all, I have a doubt about performance on cayenne (or probably ORM's in general...). Imagine a table B that has a foreign key to table A and also a foreign key to table C. You have a query that returns 1000 A's to a form where you have a table that shows all B's that belong to A. Also on each

RE: pre-remove, post-remove

2010-11-06 Thread Bruno René Santos
ost-remove Hi, Just found a bit unrelated issue with POST_LOAD callback: https://issues.apache.org/jira/browse/CAY-1503 For your case, it should help if you could post a code example with comments on where you are seeing and not seeing the callbacks. Andrus On Nov 1, 2010, at 8:10 PM, Bruno R

querying with arrays

2010-11-02 Thread Bruno René Santos
Hello all, On a expression string how can I compare a paintingArray with a single object? “paintingArray in ($painting)” Where $painting is an CayenneDataObject of type Painting? Do $painting can also be a List? Regards Bruno Santos -- Bruno René Santos | Gestor de

pre-remove, post-remove

2010-11-01 Thread Bruno René Santos
Hello all, I am having a possibly strange behaviour on my lifecycle callbacks. Imagine de following scenario: 1 textfield and 1 table on a web application. I fill table with query results depending on the textfield value. Each time i get a valueChange event on the textField I remove all lines fro

RE: Modified Fields

2010-11-01 Thread Bruno René Santos
cription, RDChangeType.changeTypeUpdate(dc)); } } } On Mon, Nov 1, 2010 at 9:27 AM, Mike Kienenberger wrote: > It's been a while, so I don't remember if it is still relevant for 3.x, but > > https://issues.apache.org/jira/browse/CAY-414 > >

RE: Modified Fields

2010-10-30 Thread Bruno René Santos
On Fri, Oct 29, 2010 at 11:43 AM, Bruno René Santos wrote: > Hello all, > > Anyone knows how can I know which fields on a CayenneDataObject were modified > since the last read? > > Thanx > Bruno Santos > >

Modified Fields

2010-10-29 Thread Bruno René Santos
Hello all, Anyone knows how can I know which fields on a CayenneDataObject were modified since the last read? Thanx Bruno Santos

RE: Cayenne Transactions vs MySQL Transactions

2010-10-28 Thread Bruno René Santos
amp column. 3) Are you really using MySQL for a financial application? MySQL likes to silently (without error) change data on you. This can lead to data loss without you ever knowing about it. mrg On Thu, Oct 28, 2010 at 9:54 AM, Bruno René Santos wrote: > Hello all, > > > > F

RE: Cayenne Transactions vs MySQL Transactions

2010-10-28 Thread Bruno René Santos
ing a version number or time stamp column. 3) Are you really using MySQL for a financial application? MySQL likes to silently (without error) change data on you. This can lead to data loss without you ever knowing about it. mrg On Thu, Oct 28, 2010 at 9:54 AM, Bruno René Santos wrote: &g

RE: MySQL error - connection reset

2010-10-28 Thread Bruno René Santos
Also I am using tomcat 6.0.26 with liferay. Thanx Bruno -Mensagem original- De: Bruno René Santos [mailto:brunor...@holos.pt] Enviada: quinta-feira, 28 de Outubro de 2010 14:47 Para: user@cayenne.apache.org Assunto: RE: MySQL error - connection reset Hi Michael, I am using cayenne

Cayenne Transactions vs MySQL Transactions

2010-10-28 Thread Bruno René Santos
performNonSelectingQuery? Thank you so much Bruno Santos -- Bruno René Santos | Gestor de Projectos - Project Manager | <mailto:brunor...@holos.pt> brunor...@holos.pt | <http://www.holos.pt> http://www.holos.pt Holos - Soluções Avançadas em Tecnologias de Informação S.A. Parque

RE: MySQL error - connection reset

2010-10-28 Thread Bruno René Santos
Outubro de 2010 14:23 Para: user@cayenne.apache.org Assunto: Re: MySQL error - connection reset Hi Bruno, Are you using Cayenne's connection pooling mechanism or something provided by the container? Either should automatically reconnect for you. mrg On Thu, Oct 28, 2010 at 5:59 AM, Bruno

Complex query

2010-10-28 Thread Bruno René Santos
rootClass to start with? Thanx Bruno -- Bruno René Santos | Gestor de Projectos - Project Manager | <mailto:brunor...@holos.pt> brunor...@holos.pt | <http://www.holos.pt> http://www.holos.pt Holos - Soluções Avançadas em Tecnologias de Informação S.A. Parque de Ciência

RE: MySQL error - connection reset

2010-10-28 Thread Bruno René Santos
org.apache.catalina.loader.WebappClassLoader clearReferencesThreads Several times, which also means, I think, that the connection is on. Thanx De: Bruno René Santos [mailto:brunor...@holos.pt] Enviada: quinta-feira, 28 de Outubro de 2010 11:00 Para: user@cayenne.apache.org Assunto: MySQL error - connection reset Hello all

CayenneDataObject serialization

2010-10-26 Thread Bruno René Santos
Hello all, Is there any way to serialize a cayenneDataObject, in order to send it to a web service? Thanx

Cayenne Source

2010-10-26 Thread Bruno René Santos
Hello all, I have downloaded the cayenne 3.0.1 source from the SVN to use as autocomplete source on eclipse. But the source code does not match with the binary code in terms of lines, I mean the breakpoints do not land on the correct place... I'm using the java files in here : [My path]\cayenne.3.

RE: Using Cache?

2010-10-25 Thread Bruno René Santos
should hit the database again. Also, your logs would show the SelectQuery hitting the database. mrg On Sat, Oct 23, 2010 at 7:29 PM, Bruno René Santos wrote: > Hello all, > > How can I know if Cayenne is going to the cache to retrieve query results or > database items? The regu

Using Cache?

2010-10-23 Thread Bruno René Santos
Hello all, How can I know if Cayenne is going to the cache to retrieve query results or database items? The regular log says something? Thank you Bruno Santos

RE: OnPrePersist not working

2010-10-20 Thread Bruno René Santos
, Bruno René Santos wrote: > Do you think validating after > pre-persist could lead to problems? I think it would help pre-persist to be more > useful, allowing us to calculate mandatory fields. Maybe a good idea actually. Care to open a Jira? We'll think about it. Andrus

RE: OnPrePersist not working

2010-10-20 Thread Bruno René Santos
[mailto:and...@objectstyle.org] Enviada: quarta-feira, 20 de Outubro de 2010 08:32 Para: user@cayenne.apache.org Assunto: Re: OnPrePersist not working Odd. Should be working. Do you actually see INSERT statement in the logs, but no callback before that? Andrus On Oct 20, 2010, at 4:05 AM, Bruno René

OnPrePersist not working

2010-10-19 Thread Bruno René Santos
Hello All, I have created a pre-persist callback to set a property from my pojo. But when I commit changes the callback is not executed... Any ideas? For instants, the post-add callback works great. Thank you

RE: Child Contexts

2010-09-23 Thread Bruno René Santos
My main problem was that I was having too many connections problems because each portlet has its own DataContext which will have its own connection pool. So what you saying is that I only need to configure a JNDI source for all portlets so that all of them share a connection pool? Bruno -Mens

RE: Rollbacks and Listeners

2010-08-09 Thread Bruno René Santos
Mike Kienenberger wrote: > On Mon, Aug 9, 2010 at 5:41 AM, Bruno René Santos wrote: >> Im using cayenne on a banking system, where commits and rollbacks are critical. >> I was thinking about using cayenne callbacks to include the creation of logs >> during database operations

Rollbacks and Listeners

2010-08-09 Thread Bruno René Santos
Hello all, Im using cayenne on a banking system, where commits and rollbacks are critical. I was thinking about using cayenne callbacks to include the creation of logs during database operations. My doubt is what happens when there is a rollback on the database during a transaction in terms of