[castor-dev] One field consultantly returning null although populated

2002-05-01 Thread Colin Canfield
I having a query on a table that maps to another table as a lookup. One of these fields always returns null ;although all the other fields are properly populated from the table. When I update data in the main table the null is then written back and I loose my actual data!   Has anyone seen

Re: [castor-dev] does anyone know how to make a database connectionthrough a DataSource? (fwd)

2002-05-01 Thread Bruce Snyder
-- Forwarded message -- Date: Wed, 1 May 2002 17:39:37 -0700 (PDT) From: rudy rouhana <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: [castor-dev] does anyone know how to make a database connection through a DataSource? I am not subscribed to

[castor-dev] read only lookup tables

2002-05-01 Thread Colin Canfield
Is there any way to make some tables in a mapping read only ?   I have a main table which has various foriegn key references to lookup tables. I would like to be able to 'lock off' the lookup tables from writing when updating the main table ...   I had tried using database permission but this

Re: [castor-dev] Strategy Proposal (repost - was: Castor JDO Status)

2002-05-01 Thread Ned Wolpert
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alright, alright... I'll skip the pluggable lock engine. If I'm the only one who wants it, then it doesn't make sense. I'm still going to work on the object removal from the cache, and make sure the lock engine is involved in that process. (Just re

Re: [castor-dev] does anyone know how to make a database connectionthrough a DataSource?

2002-05-01 Thread Bruce Snyder
This one time, at band camp, Mark Seveska said: MS>hello, MS>I am trying to connect to mysql through the DataSource interface. The reason MS>for this is because I am MS>writing my own connection pooling mechanism and will be using the DataSource MS>interface in my connection pool code. I was wond

Re: [castor-dev] Many to many relationship

2002-05-01 Thread Steve Ebersole
Assuming the banks attribute on user is mapped as "banks" (with getBanks() and setBanks()...) and you want to search based on a field named "id" in the Bank object, then do this use this OQL: "SELECT u FROM User u WHERE u.banks.id = $1" If doing queries across n:n mappings be sure that the sql e

[castor-dev] OQL seems lacking in features/functionality...

2002-05-01 Thread Dale, John C.
Title: Message Castor Development Community,Any word on when the more advanced OQL functionality will be in place?  I'm currently doing some prototyping, and would like to be able to limit the number of dependent objects that are returned in a graph.  For instance, consider the following grap

[castor-dev] Many to many relationship

2002-05-01 Thread Stéphane Verlet
hi I have 2 classes Bank and User A User can has a collection of banks When I query for a user , I get my banks ArrayList as expected I am wondering if there is a way to query for users that have a certain bank ? thank you

Re: [castor-dev] Strategy Proposal (repost - was: Castor JDO Status)

2002-05-01 Thread Kevin . Lanaghan
My vote, if I have one, is for performance optimization on the 1 to many, many to many queries. "Thomas Yip"

[castor-dev] does anyone know how to make a database connection through a DataSource?

2002-05-01 Thread Mark Seveska
hello, I am trying to connect to mysql through the DataSource interface. The reason for this is because I am writing my own connection pooling mechanism and will be using the DataSource interface in my connection pool code. I was wondering if anyone had experience with this. When I try to connect

Re: [castor-dev] Strategy Proposal (repost - was: Castor JDO Status)

2002-05-01 Thread Walters, Jay
I would definitely go for adequate performance (master/detail without n+1 queries) before distributed cache or pluggable lock engine if I have any vote. Cheers -Original Message- From: Ned Wolpert [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 01, 2002 7:44 AM To: [EMAIL PROTECTED] Subj

Re: [castor-dev] Strategy Proposal (repost - was: Castor JDO Status)

2002-05-01 Thread Ned Wolpert
> From: "Thomas Yip" <[EMAIL PROTECTED]> > Date: Wed, 1 May 2002 12:09:39 -0700 > It seems to me you should have your own implementation > of LockEngine. I am pretty sure it is much easier than > design a pluggable architecture. Yes. That is exactly what I'm looking for. The Lock Engine shoul

Re: [castor-dev] Strategy Proposal (repost - was: Castor JDO Status)

2002-05-01 Thread Thomas Yip
    To be very frank. I don’t see immediately need of doing those things, even for the points I agree.   I think getting what is in the commonly request list is enough for me to worry. If those are not done, I don’t really see people are going to keep using Castor JDO in the futu

[castor-dev] RE: how to marshal multiple instances of same object.

2002-05-01 Thread narayan . m . kikkeri
hi, i am trying marshal/unmarshal multiple instances of same object into a single xml file. i used vector and put all the instances of object and tried to marshal/unmarshal. it worked fine for first instance and rest of them were empty nodes. is there a way i can achieve this in Castor XML wi

Re: [castor-dev] Strategy Proposal (repost - was: Castor JDO Status)

2002-05-01 Thread Thomas Yip
>If we're only looking at removing objects >from the cache, then you are correct. First, I don't see value of having distributed cache right now. That's so much more things to optimize. That will give much more noticeable different. If you are talking about very long term, then I really not

Re: [castor-dev] Toggling indent property while marshalling

2002-05-01 Thread Arnaud Blandin
Hi Kate, You can't do that directly through the Marshaller API but you can do it by instantiating your own serializer, setting the indent property and then pass it to the Marshaller. Arnaud > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Kate > Ros

Re: [castor-dev] Default namespace not used for built-in data types?

2002-05-01 Thread Arnaud Blandin
Hi Florian, > > I have been using Castor SourceGenerator for a while now and have find it a > great tool. Thanks ;) > > However I have encountered the following problem when using SourceGenerator > to > generate code from the following schema (BTW: I have no control over the > schema > I *mus

[castor-dev] Toggling indent property while marshalling

2002-05-01 Thread Kate Rosenbloom
Is there a way to programmatically turn indenting on/off before a marshall() ? I don't see any obvious API access through Marshaller, or other classes in castor.xml. Kate Rosenbloom Santa Cruz, CA --- If you wish to unsub

Re: [castor-dev] appending serialized objects

2002-05-01 Thread Erik.Ostermueller
One subscriber made this inquiry. Might this help? > I would like to know if it is possible to marshal a Castor object so > that the XML header block ("") is not produced? http://www.mail-archive.com/castor-dev@exolab.org/msg04184.html -Original Message- From: Derrick Pisani [mail

[castor-dev] Default namespace not used for built-in data types?

2002-05-01 Thread Kirchhoff, Florian
Hi. I have been using Castor SourceGenerator for a while now and have find it a great tool. However I have encountered the following problem when using SourceGenerator to generate code from the following schema (BTW: I have no control over the schema I *must* use it as is): http://www.w3.org/20

Re: [castor-dev] mapping.loadMapping(String URL) ... local file?

2002-05-01 Thread Bruce Snyder
This one time, at band camp, paul brockmeyer said: pb>i want to keep my maps in a more private location (like my WEB-INF pb>directory) as opposed to making it publicly accessible. i've tried things pb>like: pb> pb>mapping.loadMapping(file://www/mysite/WEB-INF/myMap.xml); pb>mapping.loadM

Re: [castor-dev] Strategy Proposal (repost - was: Castor JDO Status)

2002-05-01 Thread Ned Wolpert
Ok... My mail I sent yesterday didn't get through... here it is again... Thomas- I can agree that simple replacement of the LRU isn't all that is needed... and that 'removal' of objects is more of a suggestion to the LRU than a demand due to locking. Furthermore, I do also agree that the polic

Re: [castor-dev] mapping.loadMapping(String URL) ... local file?

2002-05-01 Thread Ebersole, Steven
I have done it for the database.xml file by using ClassLoader.getSystemResource( "..." ).toString(). However, I think that access to this may be limited by the policy files defined by the particular J2EE server you may be using... I have not tried it specifically with the mapping files. Basica

[castor-dev] mapping.loadMapping(String URL) ... local file?

2002-05-01 Thread paul brockmeyer
i want to keep my maps in a more private location (like my WEB-INF directory) as opposed to making it publicly accessible. i've tried things like: mapping.loadMapping(file://www/mysite/WEB-INF/myMap.xml); mapping.loadMapping(/www/mysite/WEB-INF/myMap.xml); but it can't find it ... so f

[castor-dev] Default namespace not used for built-in data types?

2002-05-01 Thread Kirchhoff, Florian
Hi. I have been using Castor SourceGenerator for a while now and have find it a great tool. However I have encountered the following problem when using SourceGenerator to generate code from the following schema (BTW: I have no control over the schema I *must* use it as is): http://www.w3.org/20

Re: [castor-dev] Strategy Proposal (repost - was: Castor JDO Status)

2002-05-01 Thread Ilia Iourovitski
The functionality of "MBean Server" is to: 1. Load configuration 2. Load components with dependencies. 3. Initialize 4.Start/stop/monitor. Currently this functionality located in jdo.JDO, jdo.engine.DatabaseRegistry, jdo.engine.JDOMappingLoader. The main component is SPI provider. It implemen