As I know, you can get JDO Configuration only for existing XML file. You
can't do it by coding. But, I think you can implement it by you self? :)

-----Original Message-----
From: Rowland Watkins [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, December 16, 2003 1:44 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Dynamic JDO configuration

Hi,

I'm having difficulties with changing the mapping file for different JDO
instances.

In the Tips & Tricks section on the Castor homepage, there is a mention
of Castor being able to create "partial class views" and map them onto a
table, allowing the programmer to get only some of the data from the
table. I would like to do this as well as getting all the information
using my original class. 

I attempted to do all this in one mapping file, however, I found that
both the partial and complete classes were being loaded, when I only
wanted the partial one.

I then tried using multiple JDO configurations for each type of object
mapping I had, i.e. one for partial class and another for the complete
one. The problem that I have noted on the mailing list is that the first
loaded configuration is used for *all* subsequent JDO objects.

Is it not possible to use dynamically configure the JDO at runtime?

Cheers,

Rowland Watkins 

-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to