Hi,

I would like to use Betwixt for handling relations between objects/beans. I
found out that I could do this using the ID and IDREF attributes. This
should work, but it requires all XML data to be stored in one XML file. For
a larger amount of data this could be a problem.
To avoid too large XML files I started to write a relation bean, which
contains a reference to another XML file and the referenced bean. The
referenced bean is only read, when it gets accessed via a get method.
Now I have some problems to implement this using Betwixt. The relation bean
cannot be written/read using the standard introspection. I have to provide
some information, how to write/read the bean. Beacause of this I created a
separate XMLBeanInfo. The XMLBeanInfo should have all information required
for writing/reading the relation bean.
Now I am missing a method to provide a method to place a XMLBeanInfo in the
XMLIntrospector, which seems to be something like a XMLBeanInfo repository,
when caching is turned on. I have used a work around for doing this by
getting a XMLBeanInfo from the XMLIntrospector and modifying it. When using
this using this XMLBeanInfo I get again problems using Betwixt.

Before going on describing the problems, I would like to know, if you are
interested in Betwixt being used this way at all, or if you want to keep it
just to be used with "standard" Java Beans.

So for now I just have to know, if you plan to provide user defined
XMLBeanInfos in Betwixt.

Thanks,
Harald

--
To unsubscribe, e-mail:   <mailto:commons-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-user-help@;jakarta.apache.org>

Reply via email to