use <defaultValue>new MyClass()</defaultValue>
Prasad Kashyap wrote:
Hi,
How I can instantiate a class while declaring it as a field member in
a modello DataModel ?
field/association/type is another class that needs to be instantiated..
<field>
<name>myObj</name>
<version>1.0.0</version>
<association>
<type>MyClass</type>
</association>
MyClass myObj = new MyClass(); <<<------ is what I need
MyClass myObj; (= null) <<< ---- is what happens now.
Cheers
Prasad
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Brett Porter <[EMAIL PROTECTED]>
Apache Maven - http://maven.apache.org/
Better Builds with Maven - http://library.mergere.com/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]