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
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
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.
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
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
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
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
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
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
>
> 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
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 ---
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
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
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
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
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
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
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
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
[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
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
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.
22 matches
Mail list logo