I think OmClass needs to implement a Cloneable interface.

----- Original Message ----- 
From: Didier Dubois <[EMAIL PROTECTED]>
To: Turbine <[EMAIL PROTECTED]>
Sent: Wednesday, September 06, 2000 8:20 AM
Subject: OM + inheritance Question:


> Hi all,
> 
> I would like to know where I can find a class/tool that could resolve
> the following question:
> (sorry this is a basic question, but I come from C++)
> 
> - I have a 'OmClass' class generated by Torque, or similar tool.
> - I have a 'ExtendClass' class that extends 'OmClass' (with for instance
> a vector of other OM generated classes)
> 
> 
> - I need a contructor that create a new 'ExtendClass' object based on a
> 'OmClass'
> 
> // Pseudo code
> public ExtendClass(OmClass omObject) {
> 'clone' omObject in to super.Fields[]; // <<<<<==== what I would like
> to do
> ....
> .... (instantiate the rest of aggragations)
> }
> 
> where can i find a 'clone' that do the job? 
> Does java.lang.Oject.Clone do the job as I except?
> 
> 
> Thanks for your time,
> Didier.
> 
> -- 
> mailto:[EMAIL PROTECTED] http://www.idbsoft.ch
> 
> 
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]
> 



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to