hi Harald

when i started working on the ID/IDREF stuff i did consider this. i had an idea that they might prove useful but didn't really have a suitable itch at that time.

there are a number of improvements that i've been wanting to make in the ID/IDREF area for a while now (i sort of lost heart for a while when maven developed a classloader problem that killed my validation test cases) so this has probably come up at a good time.

if you could come up with some example code or some ideas about how you'd see them working, then we might be able to come up with a good design.

- robert

On Saturday, November 9, 2002, at 05:26 PM, [EMAIL PROTECTED] wrote:

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>


--
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