PROTECTED]]
Sent: Friday, 25 January 2002 9:57 p.m.
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] postgresql and large objects
hi,
On Fri, Jan 25, 2002 at 01:38:03PM +1300, Keith Chew wrote:
> Oh yeah, I think I encountered this before. It's a JDBC driver problem. If
> you look that th
2 10:51 a.m.
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] postgresql and large objects
hi,
On Fri, Jan 25, 2002 at 09:12:44AM +1300, Keith Chew wrote:
> Have you tried "varbinary":
yes i did it, and i get the same exception.
2002-01-24 22:46:26 - Ctx( /people ): Exception in:
Hi Rikard
Are you using Castor XML directly on the EJB or on the ValueObject/View that
the EJB generates?
I am using Xdoclet with CMP2.0 which generates the Views/ValueObjects. Now,
I would now like to add XML input and output capabilities. eg:
Input - Single
==
- receive order.xml
-
with Castor.
Keith
> -Original Message-
> From: Bruce Snyder [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 12 January 2002 9:02 a.m.
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] Castor for DAO's in an EJB app
>
>
> Keith Chew wrote:
> >
> &g
to
> the same table and the insert for the subclass would be all the fields in
> both class mappings.
>
> -- Don
>
>
> -Original Message-
> From: Keith Chew [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, January 10, 2002 5:25 PM
> To: [EMAIL PROTECTED]
> Subjec
Hi ryan
You might also want to check out CMP2.0. It includes features like lazy
loading, relationships, ejbql, bulk processors, etc. Things to note are that
CMP2.0 is:
- EJB oriented
- easier to develop web applications (long transactions)
Castor JDO is more application oriented, where EJB is no
I dont' have a problem with 1:m relationship if I set dependent=true.
Keith
> -Original Message-
> From: Jacek Kruszelnicki [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 1 December 2001 11:27 a.m.
> To: [EMAIL PROTECTED]
> Subject: [castor-dev] JBoss issues again
>
>
> Hi,
>
> I reporte
ssociation - hence the need for the
association class TemplateComponentAssoc.
I am
inside Tomcat 4. This is not a long transaction although I do use them for
other things.
Thanks,
Brett
-Original Message-From: Keith Chew
[mailto:[EMAIL PROTECTED]]Sent: Wed
x27;ll work :)
Cheers,
Brett
-Original Message-From: Keith Chew
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, 28 November
2001 3:32 PMTo: [EMAIL PROTECTED]Subject: Re:
[castor-dev] what does this mean?
Hi
Brett
Can you try removing the key-gen to
Title: what does this mean?
Hi
Brett
Can
you try removing the key-gen to see if you still have the problem? Numerous
posts have indicated that this could be a potential problem.
Keith
C
-Original Message-From: Brett Porter
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, 28 N
I have the same configuration as you Jacek. Waiting for that to be fixed.
Keith
-Original Message-
From: Jacek Kruszelnicki [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 22 November 2001 9:14 a.m.
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Castor behaves differently within JBoss
OK
the referred object seems to alleviate this
problem. But why?Thanks, Keith. It is a great workaround for now, but
I can't live without the key generation long-termMy DB admin will kill me
;-)-- JacekAt 05:12 PM 11/21/2001 +1300, Keith Chew wrote:
Can you do a quick change to
Can
you do a quick change to disable key generation on Company?
I
recall having this problem, but it is supposed to be fixed in CVS. However, I
have already disabled key generation for my class.
Just
try that. It's worth a go.
-Original Message-From: Jacek Kruszelnicki
I have
had similar problems. Quick question. Are you using the key generator for your
referenced object?
Keith
C
-Original Message-From: Jacek Kruszelnicki
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, 21 November 2001 4:29
p.m.To: [EMAIL PROTECTED]Subject: [castor-dev]
Ignore this mail. Jboss has included an older package for Castor in 2.4.3.
-Original Message-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: Friday, 16 November 2001 1:12 p.m.
To: [EMAIL PROTECTED]
Subject: [castor-dev] jboss 2.4.3
Hi
I was running Castor XML in Jboss 2.4.0 and
Hi
I was running Castor XML in Jboss 2.4.0 and everything works well. However,
after upgrading to 2.4.3, I am getting this error when unmarshalling an
object. The warning did not occur in Jboss 2.4.0. Can someone help out?
Warning : preserve is a bad entry for the whiteSpace value
Warning : pres
ember 2001 3:03 p.m.
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] remove all records...
Keith Chew wrote:
>
> Hi
>
> Is there a way in Castor to remove all records in a table? ie an
equivalent
> SQL: "DELETE FROM USER_TABLE;"?
>
Keith,
I would do this:
db.getOQLQuer
Hi
Is there a way in Castor to remove all records in a table? ie an equivalent
SQL: "DELETE FROM USER_TABLE;"?
Regards
Keith C
---
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
uns
in the same bean, it does not
work. What puzzled me further is that
WHILE it was loading a Customer, the _objects
property of TransactionContext got wiped out
If you need something else, don't
hesitate!
SD
- Original Message -----
From:
K
Hi
Sebastien
I am
not sure your exact problem unless you post some code snippet. But form your
description (it's working outside JBoss), you are mixing up your short and long
transactions. If you invoke a method is say a Session Bean (Facade), which calls
your Data Session Bean (the one t
Hi
I spent half of yesterday creating a XDoclet template to generate Castor's
mapping.xml.
Features:
- 90% compatible with Castor Doclet
- does not introspec attibutes, so "what you declare is what you get". This
is useful if you have a field that you do not want to persist, or just it's
a tempo
ssage-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 23 October 2001 4:19 p.m.
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transaction
Hi Thomas
Thanks for your patience and looking at my mail. I am basically working on
the example (Product, ProductDetail) and trying to recrea
ed.
Regards
Keith C
-Original Message-
From: Thomas Yip [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 23 October 2001 4:07 p.m.
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transaction
See inline.
-Original Message-
>From: Keith Chew [mailto:[EMAIL PROTECTED]]
>Sent: Mon
because you have to ensure that the
dependent objects are loaded in the same transaction.
Regards
Keith C
-Original Message-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 23 October 2001 3:21 p.m.
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transaction
Hi
Ok, there
ode. Maybe I might find some other hints.
Keith C
-Original Message-
From: Toni Charlot [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 23 October 2001 1:40 p.m.
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Long Transaction
Hello Keith,
can you share that, por favor.
-Original Mes
Ignore this mail. I know a way to fix my problem.
Regards
Keith C
-Original Message-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 23 October 2001 11:34 a.m.
To: [EMAIL PROTECTED]
Subject: [castor-dev] Long Transaction
Hi
Same scenarion Product and ProductGroup example
Hi
Same scenarion Product and ProductGroup example. Creation and lookup is
working fine now (all I needed to do was to load ProductGroup in the same
transaction as the one used to create the Product).
Now I am testing long transaction support.
When I assign a new ProductGroup to the product and
>>
> >>
> >>
> >> Did you reload the ProductGroup in second transaction? If you
> didn't, you
> >> should.
> >>
> >> Castor is not designed for object to be reused across transaction
> >> boundary.
> >> Un
] Found JDO bug
>
>
>
> Did you reload the ProductGroup in second transaction? If you didn't, you
> should.
>
> Castor is not designed for object to be reused across transaction
> boundary.
> Unless in special case, for long transaction support.
>
>
>
> T
Castor walked the tree, and marked object to be
> created.
> Then, it creates object that do not depends on other ids first. And, the
> create object depends on the created object, and so on.
>
>
>
>
> Thomas
>
> -Original Message-
> >From: Keith Chew SL [
Hi
I posted a mail recently about the Product -> ProductGroup problem (Castor's
example). Basically, when you:
(1) create a ProductGroup
(2) assign it to a new Product
(3) create new Product
Castor will extract the ProductGroups's id and insert it into the group_id
field. Here's the snippet of t
Hi Glenn
Great idea! I have a mapping for my JDO work, but did not want all the
fields to be un/marshalled as XML. All I really need to do is to create a
new mapping file. Hmm, maintainance would be a nightmare.
Btw, has anyone attempted to use XDoclet to generate the mapping.xml from
the java s
ober 2001 2:14 p.m.
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] help
>
>
> This one time, at band camp, Keith Chew said:
>
> KC >
> KC > KC >key-generator="HIGH/LOW" access="shared" identity="id">
> KC >
> KC &g
Hi
I am not tried this yet, but just wanted to ask if it is possible.
(1) ObjectA has many ObjectB (ObjectB depends on ObjectA)
(2) ObjectA has many ObjectC (ObjectC depends on ObjectA)
(3) ObjectC has many ObjectB (ObjectB NOT depends on ObjectC)
(1) and (2) is possible and Castor handles the
Hi Bruce
Gosh, that is quite a good idea! I'll think about that and get back to you.
Thanks
Keith C
-Original Message-
From: Bruce Snyder [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 17 October 2001 4:47 p.m.
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] advise
This one time, at ba
you using?
If you are not using the CVS version, please try that version instead,
this should have already been fixed for the problem you are specifying.
If you are already using this version, I will look into it.
Thanks,
--Keith
Keith Chew wrote:
>
> Hi Keith
>
> I get the followi
gt;
> So...the solution is to take the field mapping and alter it as follows:
>
>
> collection="vector"
> set-method="addDetail"
> get-method="getDetails">
>
>
> set-method="addDetail"
> get-method="getDetails">
>
>
>
>
> --Keith
>
> Keith Chew SL wrote:
> >
> > Hi Keith
> >
> > The mapping file is actually like this:
> >
> >
Hi
I have create ObjectA and defined it in the mapping.xml. As a JDO
application, it is reading/writing to the DB as expected.
Now I want to enable XML support, ie to allow reading and writing of the
ObjectA via XML. This is the process:
App_1 -> send xml -> MyApp (unmarshal xml, create ObjectA
Hi
I am not sure if anyone has struck this, but here goes. I have 3 objects:
(1) Message
(2) TextMessage extends Message
(3) ByteMessage extends Message
They are all defined in the mapping file.
Reading, writing and deleting of TextMessage and ByteMessage works fine.
When I create a Message o
Ignore this mail. I figured it out. I have to manually set the reference.
Doh.
Keith C
-Original Message-
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 9 October 2001 12:28 p.m.
To: [EMAIL PROTECTED]
Subject: [castor-dev] possible bug
Hi All
Very simple question. I
Hi All
Very simple question. I have ObjectA with has many ObjectBs. When I create
ObjectA, it writes everything correctly to the DB. When I remove, it removes
form both tables correctly too.
However, when I:
(1) create ObjectA
(2) restart the application
(3) delete ObjectA
Now, the cache is emp
Hi
Just a suggestion:
===
ObjectA
id: int
objB: ObjectB
===
ObjectB
id:int
===
ObjectC extends ObjectB
id: int
name: String
===
All these objects are in the mapping.xml file. Now, if I create ObjectA
; -Original Message-
> From: Thomas Yip [mailto:[EMAIL PROTECTED]]
> Sent: Saturday, 6 October 2001 6:26 a.m.
> To: [EMAIL PROTECTED]
> Subject: Re: [castor-dev] extends...
>
>
>
>
>
> -Original Message-
> >From: Keith Chew SL [mailto:[EMAIL PROTECTE
Hi
I seem to have a problem with long transactions. When I do the first
update(), it's OK. Subsequent updates gives me the:
org.exolab.castor.jdo.ObjectModifiedException: Timestamp mismatched!
Any ideas?
Keith
---
If you wish to unsubscr
Hi Adam
Have you tried TogetherSoft (www.togethersoft.com)? It does real-time
round-trip engineering of class diagrams and java code. If you download the
community edition (free), create a project in the castor folder, and you'll
have all the class diagrams generated. Might save you some time.
J
Hi
Is it possible to get a row count from a table using Castor?
Keith
---
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev
Title: Issue with 2 updates on a record in the same transaction...
Hi
Thomas
I have
having the same problem but instead of calling find twice, I am calling find
followed by delete. The EJB hangs indefinitely.
I was
wondering if you could reproduce my error.
Keith
-Original Messa
Hi All
In Postgresql, I have created a simple table with one field, ID. This field
is generated using the key-generator of type SEQUENCE.
In my client app, I have a simple piece of code:
user = findUser (15);
if (user == null) {
user = new User();
addUser(user);
addUser(user);
addUser(u
Hi All
I have been working with integrating Castor and EJBs and have discovered a
design flaw (or perhaps a feature?). In the both the rooms and the BMP
example (downloaded from JBoss' site), they use the CastorHelper class.
Every method in this class follows this pattern:
getDatabase();
...
ble auto create/update of detail object ( it wouldn't handle cascade
delete though ).
Regards,
Low Heng Sin ( [EMAIL PROTECTED] )
-Original Message-----
From: Keith Chew [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 30, 2001 10:25
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] "dep
Hi Thomas
Thanks for the quick response. OK, how would you suggest I solve this
scenario:
I have 2 tables: Person and Address.
For every person, they are associated with an address. Loading persons would
be ok. What if I now want to list all the addresses in the Address table? I
have to travers
52 matches
Mail list logo