Re: [castor-dev] many-key

2002-05-06 Thread Brett Porter
[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>+-+

Re: [castor-dev] many-key

2002-05-05 Thread Brett Porter
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

[castor-dev] many-key

2002-05-02 Thread Brett Porter
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 ~*~*~*~*~*~*~

Re: [castor-dev] Castor CVS bug WAS: mapping boolean primitive

2002-04-28 Thread Brett Porter
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

[castor-dev] Castor CVS bug WAS: mapping boolean primitive

2002-04-25 Thread Brett Porter
) -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

Re: [castor-dev] mapping boolean primitive

2002-04-25 Thread Brett Porter
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

Re: [castor-dev] Castor XML: Set-method not called on Vectors

2002-04-04 Thread Brett Porter
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

Re: [castor-dev] castor ans struts.....insight please

2002-03-05 Thread Brett Porter
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]

Re: [castor-dev] castor with struts?

2002-02-21 Thread Brett Porter
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

Re: [castor-dev] castor with struts?

2002-02-21 Thread Brett Porter
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.

[castor-dev] key-generator and threading fails

2002-02-11 Thread Brett Porter
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]

Re: [castor-dev] bug in CVS version

2001-11-29 Thread Brett Porter
;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-

[castor-dev] Bug report WAS: what does this mean?

2001-11-27 Thread Brett Porter
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

Re: [castor-dev] what does this mean?

2001-11-27 Thread Brett Porter
(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.

Re: [castor-dev] what does this mean?

2001-11-27 Thread Brett Porter
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

Re: [castor-dev] what does this mean?

2001-11-27 Thread Brett Porter
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

Re: [castor-dev] creating a related object - id is null?

2001-11-25 Thread Brett Porter
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,

[castor-dev] creating a related object - id is null?

2001-11-22 Thread Brett Porter
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]

Re: [castor-dev] using specific array types with lazy loading

2001-11-08 Thread Brett Porter
]]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

[castor-dev] using specific array types with lazy loading

2001-11-08 Thread Brett Porter
) 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

[castor-dev] Object, Retailer@5c1eae, links to another object, Image@626602 that is not loaded/updated/created in this transaction

2001-10-18 Thread Brett Porter
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]

Re: [castor-dev] NoDefClassFound

2001-10-16 Thread Brett Porter
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

[castor-dev] JDO: can't map boolean -> char[01]?

2001-10-02 Thread Brett Porter
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]

Re: [castor-dev] Problems with the JDO example

2001-09-23 Thread Brett Porter
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:

Re: [castor-dev] MappingException while running JDO Test example

2001-09-23 Thread Brett Porter
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

Re: [castor-dev] hasMore() or hasMoreElements()

2001-09-23 Thread Brett Porter
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'

Re: [castor-dev] how do you do a read-only query?

2001-09-23 Thread Brett Porter
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

Re: [castor-dev] simultaneous transactions in different threads

2001-09-23 Thread Brett Porter
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

Re: [castor-dev] Castor-0.9.3 on MySQL

2001-09-20 Thread Brett Porter
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

[castor-dev] simultaneous transactions in different threads

2001-09-20 Thread Brett Porter
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]

Re: [castor-dev] JDO: create and rollback, close() problems

2001-09-20 Thread Brett Porter
  -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

Re: [castor-dev] JDO: create and rollback, close() problems

2001-09-20 Thread Brett Porter
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

Re: [castor-dev] JDO: unexpected results with create, remove and rollback

2001-09-19 Thread Brett Porter
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

[castor-dev] JDO: unexpected results with create, remove and rollback

2001-09-18 Thread Brett Porter
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]