[castor-dev] many-key
This one time, at band camp, Brett Porter said:
BP>Hi Bruce,
BP>
BP>Although my example wasn't quite like that of the example, I have now
BP>changed it so that it is. The result is:
BP>+-++
BP>| containerId | id |
BP>+-+
a key generator - does anyone know a way around this?
Cheers,
Brett
---Original Message---
This one time, at band camp, Brett Porter said:
BP>Does anyone have "depends" for a collection of items, with the many-key
BP>working in Castor 0.9.3?
Brett,
I don't know of anyt
er to set the id, it hasn't been allocated yet.
I haven't used depends before, so I would setup the id link and create the object myself.
Sorry, can't try it with Castor 0.9.3.9+ because of the bugs in FieldMolder. (I'm working on that...)
Cheers,
Brett
~*~*~*~*~*~*~
d it does not affect Castor XML only Castor JDO.
I've updated your bug entry (#919) as I believe it's a duplicate of #834
Thanks,
--Keith
> Brett Porter wrote:
>
> Hi,
>
> Ok, I've given CVS another spin and this bug still exists. It's
> actuall
)
-Original Message-
From: Brett Porter
Sent: Friday, 26 April 2002 4:00 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] mapping boolean primitive
I use castor-0.9.3 and to use isXXX I do the get-method="isXXX", set-method="setXXX" thing, which works just fine.
Howe
Title: RE: [castor-dev] mapping boolean primitive
I use castor-0.9.3 and to use isXXX I do the get-method="isXXX", set-method="setXXX" thing, which works just fine.
However, I reported this being broken in CVS late last year, and it was still the case in 0.9.3.9.
I haven't checked CVS late
Title: RE: [castor-dev] Castor XML: Set-method not called on Vectors
You should have add-method, and a function that adds to the vectory.
Cheers,
Brett
-Original Message-
From: David Sean Taylor [mailto:[EMAIL PROTECTED]]
Sent: Friday, 5 April 2002 2:03 PM
To: [EMAIL PROTECTED]
Sub
Title: RE: [castor-dev] castor ans struts.insight please
search the archives... http://www.mail-archive.com
use Castor in your model, not your controller (maybe your actions, but definitely not your actionforms).
- Brett
-Original Message-
From: rajesh [mailto:[EMAIL PROTECTED]
ject: Re:
[castor-dev] castor with struts?
Just
a design question: Would you put the persistence calls in the ActionForm
classes?
-Original Message-----From: Brett Porter
[mailto:[EMAIL PROTECTED]]Sent: Thursday, February 21,
2002 8:34 PMTo: [EMAIL PROTECTED]Subje
Title: RE: [castor-dev] castor with struts?
Use it as you would anything else... I tend to put my persistence calls in the actions themselves, deeming it a control method (controlling the flow of data), but if the project was larger I'd write model classes to handle all of the data framework.
rators.
Using IDENTITY works.
Is this a known issue?
Regards,
Brett
~*~*~*~*~*~*~
Brett Porter - Web Developer
f2 Network ~ everything essential
Ph: +61 2 8596 4437
Email: [EMAIL PROTECTED]
;collection' i get the same error:
collection="vector">
hth
jakob
- Original Message -
From:
Brett Porter
To: [EMAIL PROTECTED]
Sent: Thursday, November 29, 2001 3:39
AM
Subject: Re: [castor-
ers,
Brett
-Original Message-From: Brett Porter
Sent: Wednesday, 28 November 2001 4:02 PMTo:
[EMAIL PROTECTED]Subject: Re: [castor-dev] what does this
mean?
Ok,
I'll give it a try.
Incidentally, TemplateComponent is not a dependant, it is just related.
This is r
(eg JBoss) or
standalone?
Keith
-Original Message-From: Brett Porter
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, 28 November
2001 5:43 p.m.To: [EMAIL PROTECTED]Subject: Re:
[castor-dev] what does this mean?
Hi, and thanks for your help.
ge-From: Brett Porter
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, 28 November
2001 5:24 p.m.To: [EMAIL PROTECTED]Subject: Re:
[castor-dev] what does this mean?
That is what I suspected. I can't explain why Castor isn't assigning
the id correctly, everything
ers,
Brett
-Original Message-From: Low Heng Sin
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, 28 November 2001 3:03
PMTo: [EMAIL PROTECTED]Subject: Re: [castor-dev]
what does this mean?
That
is the object identity.
-----Original Message-From: Brett Porter
[mailt
though it is there and works in castor
release (ie CVS is broken at the moment - its unrelated to my
problem)
-
Brett
-Original Message-From: Brett Porter Sent:
Friday, 23 November 2001 9:50 AMTo:
[EMAIL PROTECTED]Subject: [castor-dev] creating a related object
- id is null?
Hi,
uction and I'm not comfortable using anything that changes too frequently now :)
Thanks in advance!
Cheers,
Brett
~*~*~*~*~*~*~
Brett Porter - Web Developer
f2 Network ~ everything essential
Ph: +61 2 8596 4437
Email: [EMAIL PROTECTED]
]]Sent: Friday, 9 November 2001 10:03
AMTo: [EMAIL PROTECTED]Subject: Re: [castor-dev]
using specific array types with lazy loading
You
can only use java.util.Collection for lazy
loading.
Thomas
-Original
Message-
>From: Brett Porter
[mai
) featuredProducts;
If I turn off lazy loading, it works.
Shouldn't lazy loading mean you get ArrayListRelationCollection that extends RelationCollection and implements ArrayList (or something similar)?
This is with Castor 0.9.3
Thanks,
Brett
~*~*~*~*~*~*~
Brett Porter - Web Developer
f2 Ne
update the image in the database?
It seems silly to do a "deep update" of an object each time you want to change just one thing.
Thanks,
Brett
~*~*~*~*~*~*~
Brett Porter
Web Developer, f2 Network, Australia
Ph: +61 2 8596 4437
Email: [EMAIL PROTECTED]
Title: RE: [castor-dev] NoDefClassFound
that is the correct behaviour - otherwise it wouldn't know which class to use! :)
The best solution is to do this:
"from " + MyClass.class.getName()
That way if you move or rename it you don't get errors later.
Cheers,
Brett
-Original Messa
ail archives, but it seemed to be related to lazy loading. I am not using any lazy loading. Any ideas?
Cheers,
Brett
~*~*~*~*~*~*~
Brett Porter
Web Developer, f2 Fairfax Interactive Network, Australia
Ph: +61 2 8596 4437
Email: [EMAIL PROTECTED]
Title: RE: [castor-dev] Problems with the JDO example
read the FAQ - I think you have an old version of the mm.MySQL driver. v2.0.4 is latest, v.2.0.3 is required.
Cheers,
Brett
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, 24 September 2001 9:
Title: RE: [castor-dev] MappingException while running JDO Test example
my guess is you didn't modify the example's XML files, so it is trying to access a database on the server "arkin" which won't be found.
- Brett
-Original Message-
From: Sundaram Ramasamy [mailto:[EMAIL PROTECTED
Title: RE: [castor-dev] hasMore() or hasMoreElements()
hasMoreElements() and nextElement() are so it can implement java.util.Enumeration
I'm not sure why the hasMore() and next() functions are also there (perhaps to avoid changing existing code after the decision to implement Enumeration).
I'
Try
the JavaDoc... you need to pass the Database.ReadOnly flag to the query method
you are using.
-
Brett
-Original Message-From: Rhodes, Phillip C.
[mailto:[EMAIL PROTECTED]]Sent: Friday, 21 September 2001
11:29 PMTo: [EMAIL PROTECTED]Subject: [castor-dev]
how do you do
ble to use a database connection
pool.
-Original Message-From: Brett Porter
[mailto:[EMAIL PROTECTED]]Sent: 21 September 2001
04:33To: [EMAIL PROTECTED]Subject: [castor-dev]
simultaneous transactions in different threads
Hi again,
Castor is amply filling m
Title: RE: [castor-dev] Castor-0.9.3 on MySQL
did you call database.setDatabaseName( "someName" ); ?
If you are running directly from the JDO samples you'll probably need to make some modifications. Especially you'll have to change the database.xml file to point at your database.
Regards,
B
l getting a new connection to the actualy database but it appears to me to be doing a whole lot more so I'm not sure if it is such a good idea.
Regards,
Brett
~*~*~*~*~*~*~
Brett Porter
Web Developer, f2 Fairfax Interactive Network, Australia
Ph: +61 2 8596 4437
Email: [EMAIL PROTECTED]
-Original
Message->From: Brett Porter
[mailto:[EMAIL PROTECTED]]>Sent: Thursday, September 20, 2001
4:06 PM>To: [EMAIL PROTECTED]>Subject: Re: [castor-dev] JDO:
create and rollback, close() problems>>Thanks Thomas,
>I'm using MySQL (most
recent v
have these problems:
>
>1) Rollback after create is not successful.
>2) close() doesn't work (see details below).
>
>Look forward to your response. I also apologise for the HTML messages - Outlook was being a bit stubborn but I seemed to have whipped it into shape now.
>
>Than
k forward to your response. I also apologise for the HTML messages - Outlook was being a bit stubborn but I seemed to have whipped it into shape now.
Thanks,
Brett
-Original Message-----
From: Brett Porter
Sent: Wednesday, 19 September 2001 4:58 PM
To: [EMAIL PROTECTED]
Subject: [castor
lledBackException (or something similar - can't remember now).
I only have one call to jdo.getDatabase() - should the db.close() match this? Why would I get the exception I mentioned?
Thanks in advance.
Regards,
Brett
~*~*~*~*~*~*~
Brett Porter
Web Developer, f2 Fairfax Interactive Network, Australia
Ph: +61 2 8596 4437
Email: [EMAIL PROTECTED]
34 matches
Mail list logo