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: [cas
-dev] What happened with the Castor?
Hi
What you say about this: http://bugzilla.exolab.org/show_bug.cgi?id=1133
One year old my patch.
Serge
--- "Alexey A. Efimov" <[EMAIL PROTECTED]> wrote:
> It is not true... But maybe you not like Castor? :)
> In any case you can't say
Thanks a lot for pointer :) I'll looking for such database!
-Original Message-
From: Kenneth Westelinck [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2003 9:46 AM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] light weight data store
I am using HSQLDB and it has been serving my n
I think using this facades is not good - it very-very universal. And it
may slow down your application.
Enabling logging for Castor and simple implementing of toString method
will better.
My guess.
-Original Message-
From: John Weir [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 09,
You can't select/update/create/remove depended objects. To manipulate
such class objects, remove depends link in mapping XML.
-Original Message-
From: Ron Alsobrook [mailto:[EMAIL PROTECTED]
Sent: Friday, September 05, 2003 6:07 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Loading a rea
Title: Message
Hi,
If
you about storing some data, transfered by XML to DB, then you may use Castor.
In this case you know structure of XML and then may get Java Object from XML by
castor (unmarshaling), and then persist it in DB storage (Castor
JDO).
But
if you want to tore XML files in DB
Hello
You must used 'timestamp' instead of 'date'.
-Original Message-
From: Konrad [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 11:37 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] [JDO] Date Mapping: Java Date being stored without
time in Oracle
Hello.
When a class fi
Did you have key generators for your objects? If not, then you must
manualy set ID field.
-Original Message-
From: Michel Bertrand [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 24, 2003 8:41 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Is it strange or not ?
Hi !
I'm having th
Bruce can you please comment my lost post?
http://www.mail-archive.com/[EMAIL PROTECTED]/msg14995.html
Thank you!
---
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe casto
Hello,
I have simple framework to work with Castor as simplicity.
Someone ask me why method JDOWorker.update look like:
public void update(JDOObject o) {
Database db = null;
try {
db = getDatabase();
db.begin();
// Get persistence object
JDOObject persistent = (JDO
for log4j. Or more exactly I've set it up,
but I've never seen a single line of log comming from it. From what I've
seen in the source code of Castor, it seems normal because I didn't see
any attempt to log something.
Marc.
- Original Message -----
From: "Alexey A.
Hello,
Did you setup LogInterceptor?
"How it"
http://www.brainopolis.com/castorwiki/Wiki.jsp?page=IntegratingLogging
-Original Message-
From: Marc Guillemot [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 22, 2003 2:53 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Log messages from Castor
Oh, I'm sorry, the db.update not needed actualy. The history is, then
Castor was young and db.update throw LockNotGrantedException then method
update will changed to this:
/**
* Smart update for JDO object. First the worker load the persistense
object, then copy into it
* values from o, and
Ok, I try perform some tests to invoke this
-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 8:04 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transactions suggestion
This one time, at band camp, Alexey A. Efimov said:
AAE>
Title: Message
Excuse me,
Forgot to wish Good luck :))
-Original Message-From: Schlachter,
Steffen (LDS) [mailto:[EMAIL PROTECTED] Sent:
Wednesday, July 09, 2003 8:11 PMTo:
[EMAIL PROTECTED]Subject: [castor-dev] Castor JDO caching
values
Hello,
I seem to have
Title: Message
...
-Original Message-From: Schlachter,
Steffen (LDS) [mailto:[EMAIL PROTECTED] Sent:
Wednesday, July 09, 2003 8:11 PMTo:
[EMAIL PROTECTED]Subject: [castor-dev] Castor JDO caching
values
Hello,
I seem to have
found a weired problem
Hello,
Did you try use CALL SQL?
import java.sql.*;
import org.exolab.castor.jdo.engine.DatabaseImpl;
Databasedb;
db.begin();
// Field must be ordered such as in mapping file
OQLQuery query = db.getOQLQuery("CALL SQL SELECT
Title: Message
Yes,
this is possibly BUG, i guess...
So,
if you can - you may define trigger on insert in your SAB DB, then castor will
not use key generator and you problem will be fixed.
You
can also by using http://www.castor.org/javadoc/org/exolab/castor/persist/spi/KeyGenerator.html
a
Title: Message
Hi,
Can
you run this SQL on DB side?
For ?
parameter just enter some string value:
INSERT INTO "PRODUCT_GROUP" ("ID", "NAME") VALUES
("PRODUCT_GROUP_SEQ"."nextval", "test")
Thanks!
-Original Message-From: michael simons
[mailto:[EMAIL PROTECTED] Sent: Monda
Hello,
I have post the full UML diagram of Phantom Castor Framework on SF.net.
You can see UML class diagram of whole Castor Framework. This diagram
help to understand "How it can works".
The document availe on link:
http://sourceforge.net/docman/display_doc.php?docid=17859&group_id=67154
You
So, it look simple:
class Vehicle {
// Vehicles tours collection
private ArrayList tours = new ArrayList();
...
}
class Tour {
// Tour vehicles
private ArrayList vehicles = new ArrayList();
...
}
You must create their classes and just load vehicle what you need:
SELECT o FROM Vehicle
Ok, in your case you not need to use LIST IN operator, I guess:
SELECT o FROM TOUR o WHERE o.vehicle = $1
Somethink like that
Thanks
-Original Message-
From: michael simons [mailto:[EMAIL PROTECTED]
Sent: Wednesday, July 02, 2003 4:24 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] i
Title: Message
Hello!
It
becose you set parameter "trigger" to true
http://www.castor.org/key-generator.html#SEQUENCE-key-generator
you may set the "trigger" parameter to
"true". This will prevent the "Sequence_name".nexval from being pulled twice
(first time in the insert statement (see ab
Hi,
1. IN LIST operator support syntax like:
select o from Object o where id in list(1, 2, 3, 4), if values is
numeric and
select o from Object o where id in list("1", "2", "3", "4"), if values
is stringable
To perform automatical list OQL generation I use my framework
(http://sourceforge.net/pro
to:[EMAIL PROTECTED]
Sent: Tuesday, July 01, 2003 1:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Bug with complex ORDER BY queries (in Oracle?)
This one time, at band camp, Alexey A. Efimov said:
AAE>I think you must swap ORDER BY entries, becose REsultSet ordered in
AAE>unknown
uot;DETAIL","BATCH" "BATCH_0","ORDERS" WHERE
"ORDERS"."ID"="DETAIL"."ORDERID"(+) AND "ORDERS"."ID"="ITEM"."ORDERID"(+) AND
"ORDERS"."BATCHID"="BATCH_0&qu
Title: RE: [castor-dev] InfoGlue Content Management Platform Based On Castor
Wow, looks good :)
-Original Message-
From: Mattias Bogeblad [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 24, 2003 7:18 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] InfoGlue Content
Hello,
Castor Database use JNDI DataSource as generic JDBC DataSource, e.q.
call to getConnection
http://java.sun.com/j2se/1.4.1/docs/api/javax/sql/DataSource.html#getCon
nection()
So, Castor use external implementation and it every time call
getConnection. But that you question about is?
If you
Hello!
Castor not using enconding directly, you can set encoding for database
in JDBC driver properties or in XSD/XML files as special header
Thanks!
-Original Message-
From: Ethakota, Lavakishan [mailto:[EMAIL PROTECTED]
Sent: Friday, June 20, 2003 10:25 PM
To: [EMAIL PROTECTED]
Subje
: [castor-dev] Tiny framework
This one time, at band camp, Alexey A. Efimov said:
AAE>Hello, I have the same, maybe someone interest with it too:
AAE>http://sourceforge.net/projects/phantom-castor/
Many thanks Stein and Alexey! Actually this would be good content for a
Best Practices docume
Title: Message
Hello,
I
think all that Castor will not control opening and closing database connections.
It must be on side control.
You
must use JDBC drive implementation for connection control, becose each of them
bo it correctly.
Also,
i not recomend using PoolMan or DBCP for this pu
PROTECTED]
Subject: Re: [castor-dev] Short transaction doesn't update the object
Wonderful! I downloaded the source code and the org.phantom.lang package
seems to be missing. Can you help?
Thanks,
Mehul.
-Original Message-
From: Alexey A. Efimov [mailto:[EMAIL PROTECTED]
Sent: Monday,
Hello,
You can use castor framework for copyInto sulution. I have troubles this
it and do some solution for my self. I create jdoWorker class that have
methods: create(Object o), update(Object o) etc
Take a look at http://sourceforge.net/projects/phantom-castor/
You can get sources for universal c
Hello,
No it's not right - castor always load full object exept its collections. For
collection it load only ids, but if you iterate throught it - castor load for each id
their full object.
So, you can get situation then you JDO object loaded partialy.
Thanks!
-Original Message-
From: T
Title: Message
Hi,
Not
wrong you can use it. But i never do this. I this this will be
valid:
select a from example.A a, example.B b where a.field1 =
b.field1
Good
luck! :)
-Original Message-From: t tuf
[mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 29, 2003 3:49
PM
http://www.xmltravel.com/fab/2002/09">
SyndicatorId="multicom"/>cots
Of course in any sane reality I would be
able to unistall IE6 and go back to using IE5 which worked fine.
Argghhhh.
Adam.
apping to the same
method:
-Mensaje original-
De: Alexey A. Efimov [mailto:[EMAIL PROTECTED]]
Enviado el: Thursday, January 23, 2003 11:53 AM
Para: [EMAIL PROTECTED]
Asunto: Re: [castor-dev] Mapping various ELE to one field
Hello!
You can't do thi
Hello!
You can't do this becose imagene that you want perform OQL select from
JDO database that field castor will select?. Ok, if you not using JDO.
Imagine that it's just object and object have one field (cos only unique
name fields allow in Java class), but this filed have two direfent type:
Jus
Hello,
You can use DOM document, I guess.
Just select required node and thread it as document into unmarshaler.
-Original Message-
From: Rodriguez, Christine [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 23, 2003 5:03 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Simple mapping
Title: Message
AFAIK, castor still not support Map in collelction field. You can use it
but both key and value will be used as value.
By
idea, the Map must map object list to id -> object map, but now castor
not support this. I'll not recomended use it now. Wait for good
time.
Thanks!
Hello,
I have the project on sf.net - Castor Framework
(http://sourceforge.net/projects/phantom-castor)
I have in JDOWorker method getIdentity. This method return value of id
through castor mapping. But it does not work correctly.
Here is my method:
/**
* REturn identity for given object
Maybe you also have a proxy in your officenet try to run java with
-Dhttp.proxyHost= -Dhttp.proxyPort=
-Dhttp.nonProxyHosts=localhost -Dhttps.proxyHost=
-Dhttps.proxyPort=
Lucks :)
Alexey Efimov - Software Engineer
Sputnik Labs
1st Kolobovsky per., 6/3
Moscow, 103051, Russia
Phone: +7 (095) 725 5
No, if you define your related classes as extends. But this just realy
work so craches :)
-Original Message-
From: Adam Sherman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 06, 2002 8:48 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Recursive db.create() calls
Is it necessary
Yes, but why define Base class in mapping.xml?
Just write Base class and extends mapped classes
Alexey Efimov - Software Engineer
Sputnik Labs
1st Kolobovsky per., 6/3
Moscow, 103051, Russia
Phone: +7 (095) 725 5444
Direct: +7 (501) 401 3217
Fax: +7 (095) 725 5443
E-Mail: mailto:[EMAIL PROTECTED]
Dave,
I think it not implemented feature :)
So, with extend are one more corioses:
Even if we get to Castor valid tables with id in product and id in
computer, the SELECT c.name FROM myapp.Computer WHERE id = "1"
Throw Exception somethink about "field can't be reached from Computer".
I tried make
remove castor.properties from castor's JAR file
-Original Message-
From: Stephen Tsun [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 3:28 AM
To: [EMAIL PROTECTED]
Subject: [castor-dev] where should castor.properties be located, esp.
under tomcat?
hi:
I am a newbie with ca
Hi,
No I use in ORACLE type NUMBER
-Original Message-
From: Sylvie RAMON [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 7:07 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] RÊp. : Re: [castor-dev] JDO- Problem mapping type
oracle Number
Thanks for your response.
I'm agree wi
You must point to SID -
-Original Message-
From: heyvaert [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 6:39 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] DatabaseNotFoundException
Hi,
As a newbie, I try to connect to an existing DB to be able to run the
jdo-ex
Title: Castor Not support extends
In samples we can look Computer exdends Product. But, if you try get field of products by accessing to child Computer object nothing getting…
Extends affect only to identity and nothing else…
Is it extend? It's not extend - it's one to one relation.
Ext
hello,
I use it and it works :)
-Original Message-
From: Sylvie RAMON [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 28, 2002 4:59 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] JDO- Problem mapping typ
mapping.getRootMapping().enumerateClassMappings();
classMapping.getIdentity()
classMapping().enumerateFieldMappings()
Good luck
-Original Message-
From: Konstantin Krasovsky [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 27, 2002 2:23 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Fi
Title: How i can do inner SELECT in Castor OQL?
Hello,
Does anybody known about SELECT o1 FROM Object1 o1 WHERE o1.idO2 IN LIST(SELECT o2.id FROM Object2 o2)??
How I can do? (if I can) :)
Thanks
article.id can't be 11 and 12 by one time: You queried follow:
I = 1;
(I == 1 and I == 2) this always false
So, article.id - it's one value, how one value may be and 11 and 12 ? :)
-Original Message-
From: Christoph Sturm [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 06, 2002 8:03 P
is there's a rule to map the Date fields
in my objectPersistent class i use a java.util.Date
i should use this or java.sql.Date ??
thanks
Ben.
-Message d'origine-
De: Alexey A. Efimov [SMTP:[EMAIL PROTECTED]]
Date: jeudi 24 janvier 2002 11:45
A: [EMAIL PROTECTED]
depricated :)
you already find that trouble is :))
-Original Message-
From: Alexey A. Efimov
Sent: Thursday, January 24, 2002 1:43 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transaction Problem !!! HELP
I not sure but. try this selects:
select * from utilisateur;
and
2 1:32 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transaction Problem !!! HELP
i use MS SQL Server on a windows 2000 server
and my web app is on a linux redhat 7
Ben.
-Message d'origine-
De: Alexey A. Efimov [SMTP:[EMAIL PROTECTED]]
Date: jeudi 24 janvier 2002 11:13
A
ng.Thread.run(Thread.java:484)
thanks
Ben
-Message d'origine-
De: Alexey A. Efimov [SMTP:[EMAIL PROTECTED]]
Date: jeudi 24 janvier 2002 10:40
A: [EMAIL PROTECTED]
Objet: Re: [castor-dev] Long Transaction Problem !!! HELP
Heelo,
try check SQL, that Castor send to Databa
ow that my data were changed by another user ??
Ben
-Message d'origine-----
De: Alexey A. Efimov [SMTP:[EMAIL PROTECTED]]
Date: mercredi 23 janvier 2002 20:22
A: [EMAIL PROTECTED]
Objet: Re: [castor-dev] Long Transaction Problem !!! HELP
Castor hold timestamp labels in thi
Title: Can i set type on XML field?
I want to use CDATA in big string fields.
For example:
class A {
private String text;
….
}
And I want XML:
How I must wrtie mapping.xml that Castor begin used CDATA modifiers for fields?
Thanks
You can use db.update only for object from another transaction.
Example:
...
// First transaction (get the object)
db.begin
o = db.load(Object.class, id);
db.commit();
// Here we change object
o.setXX(...);
// Second transaction (update the object)
db.begin();
db.update(o);
db.commit();
This c
Title: Curious exceptions in Castor :) (serial "what the hell?")
1. If you get exception after update or create that: StringBufferIndexOutOfBound exception, it mean that you try save to foreign key field an empty string value ("", but not null, becose for null it work correct).
2. If you get
Title: How get list of complex identifiers?
How I can get list of complex identifiers of object. The OQL conception means that I can select only one object (not set of fields that in generic SQL).
I can use:
select o from Object o;
or
select o.field from Object o;
and I can't use follow:
Use Complex class.
Complex identity = new Complex(firstName, lastName);
Object o = db.load(com.xyz.MyObject.class, identity);
-Original Message-
From: Fabien Baligand [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 21, 2002 7:33 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] How can I l
Title: Сообщение
This happend on
Windows platform. In DOM document Node have value with "\r\n". How setup Castor
for "\n" only character symbol?
-Original Message-From: Alexey A. Efimov
Sent: Sunday, January 20, 2002 1:21 PMTo:
[EMAIL PROTECTED]Subje
Title: Сообщение
Then
i save in varchar2 field text with '\n' symbols marshaller make XML document
that have converted '\n' to "\n\n".
Why?
goodLuck :)
-Original Message-From: Bert van Brakel
[mailto:[EMAIL PROTECTED]] Sent: Sunday, January 20, 2002
3:10 AMTo: [EMAIL PROTECTED]Subject: Re:
[castor-dev] OQL question
Ok, thanks.
- Original Message -
From:
Alexey A.
Efimov
To
Hello,
If you use values as numbers you not need quotes,
for characted date use single quote = ' (apostrof),
for example:
select o from Object o where id in list(1, 2, 3);
or
select o from Object o where name in list('name1', 'name2', 'name3');
Thanks
-Original Message-
From: Bruce Sn
kept in the mail archive and wait long long time until
we
would have the time to review the code and write test cases for
that.
Thomas
-Original
Message-
>From: Alexey A. Efimov
[mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, December 26, 2
When you load mappin.xml and get object Mapping.
Then:
MappingRoot mappingRoot = mapping.getRoot();
Enumeration e = mappingRoot.enumerateClassMapping();
while (e.hasMoreElements()) {
ClassMapping classMapping = (ClassMapping)e.nextElement();
// Here using ClassMapping you can retrive all info
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] DataSource Parameters
> "Alexey A. Efimov" wrote:
>
> Hello,
>
> I have question for DataSource xml setup in database.xml:
> ...
>
>
>
> ...
>
> Where are put those parameters (param1="value
I think, no
Castor throws Exception on this OQL.
OQL concept says what result of selection must be object
-Original Message-
From: Mandava, Sunil (PLC, IT, ValueMomentum)
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 09, 2002 6:19 PM
To: [EMAIL PROTECTED]
Subject: [castor-dev] Sele
Hi,
Yes, we use PoolMan with Castor.
Simple:
In poolman.xml we defined section for datasource named "oraclepool".
Alexey Efimov - Software Engineer
Sputnik Labs
1st Kolobovsky per., 6/3
Moscow, 103051, Russia
Phone: +7 (095) 725 5444
Direct: +7 (501) 401 3217
Fax: +7 (095) 725 5443
E-
Title: Сообщение
Hello,
You
can use follow form syntax:
select o from Product p where id in list(1, 45, 120)
Alexey Efimov - Software
Engineer Sputnik
Labs 1st Kolobovsky
per., 6/3 Moscow,
103051, Russia Phone:
+7 (095) 725 5444 Direct: +7 (501) 401 3217 Fax: +7 (095) 725 5443 E-Mail: m
Title: Why it is RelationCollection?
If I have two classes - A and B. A have a set of B (by collection).
B depends on A.
Becose class B depends on A, I can't use OQL and db.load per class B directly. But I have access to them via class A (a collection field).
But this mean that I can only
74 matches
Mail list logo