|
Dear Nick,
Ops...I am sorry because of the bad comprehension on your message.
But, I feel that it is quite weird to modify the generated code since there is code generator prepared by Castor group. I think, the need of modification shows that it is not the ideal/proper way of working out the problem.
Any idea from you all guys?
Cheers,
Ng Keng Yap
-------Original Message-------
Date: 14 Oktober 2004 1:07:16
Subject: Re: [castor-user] Fw: My Castor Usage
Let me rephrase that:
There is A solution, but it would require you to either modify the
generated code, or to extend it. Both cases are not ideal, with
extends being the lesser of two evils.
Either way, there should be a cleaner way to do this as I stated earlier.
>
>
> Dear Bruce and Werner,
>
> Is it true that there is no solution in Castor for my problem? It is a very
> basic requirement for XML-database mapping. If so, then this problem should
> be posted to the castor-dev user group to be addressed in future
> development.
>
> Thanks in advance for your reply and I would appreciate it very much.
>
> Cheers,
> Ng Keng Yap
>
>
>
>
>
> -------Original Message-------
>
>
> Date: 13 Oktober 2004 23:33:43
> Subject: Re: [castor-user] Fw: My Castor Usage
>
> Ok, bad news is, as it is I dont see a way to map objects into a
> database. Man reason being that castor only support the standard
> list/collection types when holding 1:M and the like relationships.
>
> Now saying that though you aren't to far off from having what you
> need. All you would need to add to be able to map this is the
> _developersList in the parent class of developers. But I dont know if
> thats generated or not, guessing it is. So it would get messy to have
> to modify or extend generated code.
>
> Also, to all the Castor-XML/Source-Generator developers out there, is
> there any reason why this Developers class couldnt simply extend a
> vector with the methods addDeveloper(...) and the like simply added
> in? This would make the process MUCH MUCH easier to go back and forth
> from XML to JDO mappings. Being able to simply use the Vector type in
> the JDO mapping file.
>
> -Nick
>
>
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> unsubscribe castor-user
>
>
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> unsubscribe castor-user
>
>
>
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
unsubscribe castor-user |