Hi,

Any chance that we can use BeanUtils to feed PersistentFields? For instance,
we could define in the repository:

<!-- Definitions for org.apache.ojb.broker.Role -->
   <class-descriptor
      class="org.apache.ojb.broker.Role"
      table="PERSON_PROJECT"
   >
...
      <field-descriptor id="1"
         name="person.id"
         column="PERSON_ID"
         jdbc-type="INTEGER"
         primarykey="true"
      />
      <field-descriptor id="2"
         name="project.id"
         column="PROJECT_ID"
         jdbc-type="INTEGER"
         primarykey="true"
      />
...
   </class-descriptor>


and in the Persistence Class:

public class Role implements Serializable
{
        Person person;
        Project project;
...
}


Does this make any sense? I've been investigating the
PersistentFieldFactory.java, but I'm not sure if it's the class to change.

Regards,
Elder


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to