Re: Select Query on Table with no Primary Key

2007-06-08 Thread Andrus Adamchik
On Jun 8, 2007, at 7:01 AM, Craig L Russell wrote: Just FYI, when JDO reads data from tables without PK, it internally creates a unique id, similar to a generated PK, for the objects that it reads and these ids are discarded when no longer needed. The fact that the mapping is for tables

AW: Cayenne Generated Classes in Web Service API

2007-06-08 Thread Peter Schröder
no, we did a detour providing our own pojos that contain only serializable data and are handled by axis. before sending data to the client we copy values from cayenne-objects to our pojos using reflection. i did not like this approach, but it had the advantage, that we could easily strip out

Re: Select Query on Table with no Primary Key

2007-06-08 Thread Andrus Adamchik
I am +0 on this feature. Maybe you are right and the users should have an opportunity to mess up the object graph in this case :-) Would you mind logging a Jira issue? And let's see what other Cayenne developers say on that. Thanks Andrus On Jun 8, 2007, at 10:25 AM, Dave Merrin

transaction for select queries

2007-06-08 Thread Tobias SCHOESSLER
Why is cayenne surrounding non altering queries with transactions? We have a setup using a sequoia database cluster in which any transaction uses resources. Is there a way to configure cayenne to only commit altering transactions? thanks Tobias

How to set setEndToEndMetrics through Cayenne

2007-06-08 Thread Srinivas Chinthalapudi
Hi, In our project GLIN we would like to have a debugging mechanism and hence would like to pass user object or userID to be passed into the connection as a parameter, this can be done using the method setEndToEndMetrics in = oracle.jdbc.OracleConnectionWrapper. But I do not find a way in

Multiple cayenne.xml files

2007-06-08 Thread Muzaffer Ozakca
Hi all, I have an application that uses Cayenne to connect to a DB (say DB-A). I have another bunch of classes that connect to another DB (say DB-B). Those two databases are completely unrelated. The classes from this application are in a jar. I have cayenne.xml and other domain config files

Re: Multiple cayenne.xml files

2007-06-08 Thread Muzaffer Ozakca
I think the problem is solved. I followed the instructions on http://cayenne.apache.org/doc20/customizing-configuration.html The second alternative in the DefaultConfiguration title. Thanks! Muzaffer Ozakca wrote: Hi all, I have an application that uses Cayenne to connect to a DB (say DB-A).

Re: SQLTemplate not faulting an object

2007-06-08 Thread Andrus Adamchik
Just checked this in to 3.0 branch (with Modeler support): https://issues.apache.org/cayenne/browse/CAY-800 so you'll be able to do this for instance: sqlTemplate.setColumnNamesCapitalization (SQLTemplate.UPPERCASE_COLUMN_NAMES) Andrus On Jun 5, 2007, at 2:38 PM, Andrus Adamchik

Re: Select Query on Table with no Primary Key

2007-06-08 Thread Craig L Russell
On Jun 7, 2007, at 3:32 AM, Andrus Adamchik wrote: I'm kind of curious if Cayenne supports PK-less for read-only data now, though. Seems to me that could be a useful thing. It doesn't - otherwise you won't be able to build a valid ObjectId and hence - ensure uniqueness across the context.