Re: DataObjectUtils.objectForPK

2007-11-28 Thread Michael Lepine
Okay, thank you. On Nov 28, 2007 3:06 PM, Aristedes Maniatis <[EMAIL PROTECTED]> wrote: > > On 29/11/2007, at 7:55 AM, Michael Lepine wrote: > > > I noticed that the convenience methods in the DataObjectUtils class > > only > > execute a query if the object

DataObjectUtils.objectForPK

2007-11-28 Thread Michael Lepine
I noticed that the convenience methods in the DataObjectUtils class only execute a query if the object is not already cached. Is there a way to force the methods to issue a query to the database? I've included an excerpt of the javadocs for 2.0 below. public static DataObject

Re: CayenneModeler and Reengineering Database Schema

2007-11-27 Thread Michael Lepine
a Google > search would help you there. > > Sorry there isn't a better answer currently, > > /dev/mrg > > > > On Nov 26, 2007 5:06 PM, Michael Lepine <[EMAIL PROTECTED]> wrote: > > Hello all. > > > > I am currently using CayenneModeler version

Re: CayenneModeler and Reengineering Database Schema

2007-11-27 Thread Michael Lepine
y write this down in the wiki thingi..) > > Regards, > - Tore. > > > On Nov 27, 2007, at 15:31 , Michael Lepine wrote: > > > Very interesting. This sounds like what I'm looking for. Is there a > > link that contains a little more information on how th

Re: CayenneModeler and Reengineering Database Schema

2007-11-27 Thread Michael Lepine
ROTECTED]> wrote: > Hello. > > I think this is handled by the merge-stuff I have worked on. It will > be included in the next 3.0 milestone. > > https://issues.apache.org/cayenne/browse/CAY-885 > > Regards, > - Tore. > > > On Nov 26, 2007, at 23:06 , Mich

CayenneModeler and Reengineering Database Schema

2007-11-26 Thread Michael Lepine
Hello all. I am currently using CayenneModeler version 2.0.3 to reengineer a database schema and generate the subsequent Java classes. Some of the ObjEntity instances have primary/foreign keys mapped manually because these keys are generated by another process (outside of the Cayenne framework). T

Re: Strange Oracle Connection Issue

2007-08-21 Thread Michael Lepine
rt, so I'm probably not the best person to ask, but here's > some things that come to mind: > > 1) Using a different driver in Cayenne config. > 2) Using a different path (or maybe home directory) for Cayenne config. > 3) Using a different driver url for Cayenne config. >

Re: Strange Oracle Connection Issue

2007-08-20 Thread Michael Lepine
ke > \Oracle\product\10.1.0\Client_1\network\ADMIN\tnsnames.ora. > > You probably need to configure the same file on your Solaris box. > Either that or use the fully-qualified domain name to your server (and > you still might have issues). > > On 8/20/07, Michael Lepine <[EMAIL PR

Strange Oracle Connection Issue

2007-08-20 Thread Michael Lepine
Hello all, I am running into a perplexing issue. I am trying to run an application I've written (using Cayenne) on a Solaris 10 box and keep getting connection errors. During development, I modified the Cayenne driver.xml file many times with different database connection parameters and have never

Re: Exception: No property for arcId

2007-06-27 Thread Michael Lepine
07, Andrus Adamchik <[EMAIL PROTECTED]> wrote: Could you doublecheck the model making sure the 'toDepartmentPrefix' relationship is still mapped? I often get similar errors when I forget to refresh the source tree in Eclipse after changing the mapping in the Modeler. Andrus On Jun 26,

Exception: No property for arcId

2007-06-26 Thread Michael Lepine
Hello all. I am getting the CayenneRuntimeException below when trying to invoke the setToOneTarget on one of my generated classes. The _Req and _DepartmentPrefix classes are generated classes. This same code worked yesterday morning but after some updates to the database and subsequent updates to

Re: creating/saving transient objects to database

2007-06-22 Thread Michael Lepine
s for all of the required relationships if you have to create/register new objects (when there was no DB match). This way your main processing code can just apply changes blindly without having to check if the relationships exist. On 6/21/07, Michael Lepine <[EMAIL PROTECTED]> wrote: > >

Re: creating/saving transient objects to database

2007-06-21 Thread Michael Lepine
er nifty way to do it. Fredrik -----Original Message- From: Michael Lepine [mailto:[EMAIL PROTECTED] Sent: Thursday, June 21, 2007 2:46 PM To: user@cayenne.apache.org Subject: creating/saving transient objects to database I've got a situation where I've got strict POJO objects tha

creating/saving transient objects to database

2007-06-21 Thread Michael Lepine
I've got a situation where I've got strict POJO objects that I'll need to copy data from and into my generated Cayenne classes. My issue is that when I copy the data from the bean to the Cayenne class, I don't know whether the object exists or not. Thus, I create the Cayenne class instance using D

Re: Cayenne Generated Classes in Web Service API

2007-06-08 Thread Michael Lepine
If you're interested, we can look at what's necessary to complete that work. -- Kevin > -Original Message- > From: Michael Lepine [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 07, 2007 11:36 AM > To: user@cayenne.apache.org > Subject: Cayenne Generated Classes in

Re: Cayenne Generated Classes in Web Service API

2007-06-07 Thread Michael Lepine
rsistent objects provide references to unserializable objects. i think that this might be handled by a custom de-/serializer, but we did no further investigation. kind regars, peter -Ursprüngliche Nachricht----- Von: Michael Lepine [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 7. Juni 200

Cayenne Generated Classes in Web Service API

2007-06-07 Thread Michael Lepine
This may be off topic but hopefully it's not considered to be. I am researching options for creating a web services-based API for our company's flagship product. The data model backing the application has quite a few tables. A lot of the functionality we want to support involves exporting or impo

Re: getter/setters for PKs in generated objects

2007-06-06 Thread Michael Lepine
"stick" and should be saved in the model (so it won't be lost). Then, when you generate your classes, it'll also generate getters/setters for the PK/FK values. /dev/mrg On 6/5/07, Michael Lepine <[EMAIL PROTECTED]> wrote: > I am looking into using Cayenne for a new

getter/setters for PKs in generated objects

2007-06-05 Thread Michael Lepine
I am looking into using Cayenne for a new project. I have used it before for new applications but not to integrate with an existing framework which is what I'll be doing on this project. The existing project is a web-based application that has a database back-end with almost 300 tables. The applic

Re: Delete query not generating as expected

2007-04-07 Thread Michael Lepine
ext.deleteObject(answer); /dev/mrg On 4/7/07, Michael Lepine <[EMAIL PROTECTED]> wrote: > I'm experiencing something confusing when committing changes with a > DataContext and objects to be deleted. I have a list of CayenneDataObjects > that I'm either updating or dele

Delete query not generating as expected

2007-04-07 Thread Michael Lepine
I'm experiencing something confusing when committing changes with a DataContext and objects to be deleted. I have a list of CayenneDataObjects that I'm either updating or deleting depending on parameters set in a web client. I've included the code below. When I debug the code, I can see the Persi

Ordering by Primary/Foreign Keys

2007-03-23 Thread Michael Lepine
In my application, I have a few queries that I've created with the SelectQuery class. In some instances, I'd like to order the results by the primary or foreign keys in the table using the addOrdering() method. I have not found a way to do this. I believe I get an error that the column does not ex

Re: identity tables

2007-03-21 Thread Michael Lepine
After flattening you will be able to call city.getStates() and so on. Regards, - Tore. On Mar 21, 2007, at 16:20, Michael Lepine wrote: > Hello all. I am a fairly new user of Cayenne and am trying to get more > familiar with the API and modeler. My question deals with an > identity table. &g

Ordering by Primary/Foreign Keys

2007-03-21 Thread Michael Lepine
In my application, I have a few queries that I've created with the SelectQuery class. In some instances, I'd like to order the results by the primary or foreign keys in the table using the addOrdering() method. I have not found a way to do this. I believe I get an error that the column does not ex

identity tables

2007-03-21 Thread Michael Lepine
Hello all. I am a fairly new user of Cayenne and am trying to get more familiar with the API and modeler. My question deals with an identity table. I have not seen any documentation (or examples in the documentation) dealing with this issue, which is why I'm posting to the list. As an example, le