[ http://issues.apache.org/jira/browse/OJB-47?page=comments#action_12314143
]
Thomas Dudziak commented on OJB-47:
-----------------------------------
It might be useful to unify the object creation in the repository.xml, e.g.
<class-descriptor class="SomeClass">
<creation type="constructor"> <!-- this would be the default creation
type, also possible would be 'factory-method' -->
<arg idx="0" field-ref="someField"/>
<arg idx="1" constant-value="1"/>
</creation>
<field-descriptor name="someField"
jdbc-type="VARCHAR"
primarykey="true"
nullable="false"/>
</class-descriptor>
and the current factory-class/factory-method attributes in class-descriptor
would be deprecated.
> Feature Request: Arguments for class constructor
> ------------------------------------------------
>
> Key: OJB-47
> URL: http://issues.apache.org/jira/browse/OJB-47
> Project: OJB
> Type: New Feature
> Reporter: Michael Kröz
> Priority: Minor
> Attachments: TestConstructorArgument.java
>
> As spoken with Thomas Dudziak about, it would be nice to have
> a possibility to use arguments for the constructor of a class, that
> allows one to parametrize the construction of an object.
> This feature request is tightly coupled with another requested
> extension, the support of non-static inner classes.
> Regards,
> Michael Kröz
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]