commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Martin van den Bemt <>
Subject [betwixt] strange behaviour with multimapping
Date Sat, 05 Nov 2005 14:16:36 GMT
Hi everyone,

We are using the betwixt multimapping in ddlutils but this gives some unexpected behaviour.
Let's assume this xml :

<database name="test">
   <index name="NotATable"/>

Let's assume this model :

Database -> Table -> Index

When reading this model we get a table named NotATable (index is not a child in anyway of
table is though)

I tried to isolate this issue in a test for betwixt, but didn't succeed very wel, but I committed
test in ddlutils that shows this behaviour.

Below are all links to the files that may be necessary.

The test :
(see the testmethod testFaultReadOfTable())

The mapping.xml :

The where the mapping is initialized :

The only thing I could figure out is in
On line 287 it tries to get the elementDescriptor for elementName index and in
it the qualifiedname seems to be null, which makes it return the elementdescriptor for table,

instead eg null and that way not processing that element at all.

Some changes in betwixt I tried didn't turn up anything (except for making the test that fails
but the rest failing :)

Any help is appreciated...


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message