Re: [castor-dev] problem when deleting an Object

2004-01-31 Thread Bert van Brakel
use a bigint(8) -Bert marco mistroni wrote: hi all, i am using Castor JDO (version 0.9.5.2) and i have written a class (named CastorEntry) which implements the interface Persistent and TimeStampable. as part of my junit test, i am creating an object, then i am querying the database to

[castor-dev] How to use just a modification flag to indicate bean needs to be updated?

2004-01-30 Thread Bert van Brakel
I am wondering if there is a way (without modifying castor source) to get castor to only check a single non persistable field on a bean to determine if it needs to be updated in store? Something like bean.isModified() ? I have beans which handle all the timestamps/modification checks internall

Re: [castor-dev] Calling private/protected methods

2004-01-29 Thread Bert van Brakel
e (interface-->impl). That's my take on it, -Bert van Brakel Gregory Block wrote: On 29 Jan 2004, at 02:53, Jeremy Haile wrote: However, the configuration utility needs to be able to set the ID property so that our persistence mechanism (Hibernate) knows that the object already exists.

Re: [castor-dev] HOw to make cache works?

2002-03-19 Thread Bert van Brakel
Why not use aBroker = (og_Broker) db.load( og_Broker.class, brokerNbr) I guess if you do a query it has to run it through the db to see if any identity fields match. I suppose it doesn't distinguish between an identity field and other fields when doing a query. Bert. --- David Tam <[EMAIL PRO

[castor-dev] How to use a 'CALL SQL...AS classname' in jdo?

2002-01-31 Thread Bert van Brakel
I'm trying to figure out how to use a direct sql call and make castor spit out a QueryResult set of persistence objects. I'm building a pretty run of the mill Group/Role/Permission security system. What I want is to retrieve a ResultSet listing all the group/roles/permissions a particular User ha

Re: [castor-dev] Can't retrieve the resultsets while using OQL with non-primary key query?

2002-01-28 Thread Bert van Brakel
Did you ever find out what the problem was? I'm having the same problem. It seems to do it when a parent object has a many-many relation and the child objects don't exist, but the relation mapping does. Bert. - Original Message - From: "John Wang" <[EMAIL PROTECTED]> To: <[EMAIL PROTECT

Re: [castor-dev] mapping.xml (correct one)

2002-01-21 Thread Bert van Brakel
Here's the correct mapping file ( ie: it works). Notes on creating relations in Persistent storage: one-to-many A has many B. B is dependent on A You have to have a method in B to add A to it. Like B.setA( A ). When you add B to A like in A.addB( B ) the addB method in A has to call B.s

Re: [castor-dev] Object reference not made persistent.

2002-01-21 Thread Bert van Brakel
ther investigation, because I really have no time. > > > > Thomas > > -Original Message- > >From: Bert van Brakel [mailto:[EMAIL PROTECTED]] > >Sent: Sunday, January 20, 2002 12:52 PM > >To: [EMAIL PROTECTED] > >Subject: Re: [castor-dev] Object re

Re: [castor-dev] Object reference not made persistent.

2002-01-20 Thread Bert van Brakel
I have identified a similiar problem in thread "Re: [castor-dev] New child objects in m:n relation not created in Persistent storage when creating new parent + more errors" I think it may be a bug. I am awaiting a response from Thomas to see what he makes of it. It could be something to do with

Re: [castor-dev] New child objects in m:n relation not created in Persistent storage when creating new parent + more errors

2002-01-20 Thread Bert van Brakel
> > First, m:n relationship can't be dependent. But, I > assume you've already tried non dependent first. > > I don't aware any bug causing your problem. > The test case for m:n relationship is working. > > Please take a close look into the test to see if > t

Re: [castor-dev] Composite Object Caching

2002-01-19 Thread Bert van Brakel
Why can't castor map them using the same setup as a many-to-many relationship? In this case though one of the columns (parent identifier) in the mapping table would be unique. Surely that can't be impossible to do? Or can't this be executed in one sql statement? Bert. - Original Message ---

Re: [castor-dev] mapping.xml

2002-01-19 Thread Bert van Brakel
Attached are two xml files. One, "dev.xml" is the file used to setup the databse connection using normal JDBC connections (not using a datasource). The other, "webrent.xml", is the mapping file for some persistent objects. I have a few probs with the Group and GroupRole relationships so there ma

Re: [castor-dev] OQL question

2002-01-19 Thread Bert van Brakel
side. -Original Message-From: Bert van Brakel [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 17, 2002 1:23 PMTo: [EMAIL PROTECTED]Subject: Re: [castor-dev] OQL question Can you bind a list? - Original Message - From: Alexey A

Re: [castor-dev] New child objects in m:n relation not created in Persistent storage when creating new parent

2002-01-19 Thread Bert van Brakel
start the transaction     Thomas     -Original Message- >From: Bert van Brakel [mailto:[EMAIL PROTECTED]] >Sent: Thursday, January 17, 2002 2:11 AM >To: [EMAIL PROTECTED] >Subject: Re: [castor-dev] New child objects in m:n relation not created in P

Re: [castor-dev] OQL question

2002-01-17 Thread Bert van Brakel
Title: Сообщение Can you bind a list? - Original Message - From: Alexey A. Efimov To: [EMAIL PROTECTED] Sent: Tuesday, January 08, 2002 10:05 PM Subject: Re: [castor-dev] OQL question Hello, You can use follow form syntax: select o from Product p whe

Re: [castor-dev] New child objects in m:n relation not created in Persistent storage when creating new parent

2002-01-17 Thread Bert van Brakel
ge when creating new parent > > Bert van Brakel wrote: > > > > Why does castor not create new child objects in persistent storage > > when I create a new parent object? > > > > Example code: > > db.begin(); > > Permission perm1 = new Permission( &q

Re: [castor-dev] New child objects in m:n relation not created in Persistent storage when creating new parent

2002-01-17 Thread Bert van Brakel
nd on your Role class in the mapping.                      Otherwise you need to create the Permission objects first and then create your Role. -Original Message-From: Bert van Brakel [mailto:[EMAIL PROTECTED]]Sent: Wednesday, January 16, 2002

[castor-dev] New child objects in m:n relation not created in Persistent storage when creating new parent

2002-01-16 Thread Bert van Brakel
Why does castor not create new child objects in persistent storage when I create a new parent object?   Example code:     db.begin();     Permission perm1 = new Permission( "perm1" );     Permission perm2 = new Permission( "perm2" );     Role role = new Role();     role.add( perm1 );     rol

[castor-dev] Wrong class type returned when requesting extended\subclass object

2001-12-05 Thread Bert van Brakel
Hi everyone. I am trying to obtain an object from the database whos parent class has already been loaded. Instead of returning an object of the subclass, castor returns the parent class object. My question is, how do I tell castor to not do this? I'm trying to tie castor and turbine (apache) to

Re: [castor-dev] Does castor support proxy objects?

2001-11-29 Thread Bert van Brakel
[EMAIL PROTECTED]> Sent: Friday, November 30, 2001 5:40 PM Subject: Re: [castor-dev] Does castor support proxy objects? > This one time, at band camp, Bert van Brakel said: > > BvB >Will future versions of castor support proxy objects, if they are not > BvB >currently support

[castor-dev] Does castor support proxy objects?

2001-11-29 Thread Bert van Brakel
I was wondering if castor supports proxy objects?. I can't seem to find any mention of this topic anywhere in the docs, nor in the mailing lists (after googling it). I mainly want to use it for displaying search results, as I don't want to castor to have to load the full objects. Will future ve

Re: [castor-dev] pathes

2001-11-17 Thread Bert van Brakel
Hi, I had similiar problems with loading JDO config files. What I did in the end was to first create a file pointing to the resource then call toURL on it. That seemed to fix the problem. I thought it very strange too. that is: jdo.loadConfiguration( ( new File( pathname ) ).toURL() ) Bert.