-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problema with record ID #23
Comments
Please provide your mapping.xml file or the equivalent code with the annotations |
|
Your classes doesn't specify any min/max occurrences. How are your data then structured? How do you define your The above work for me with a simple change to
Is the test data correct? Should the last message not start with |
There are any number (0..unbonded) of X/XD/XR records in any order. I just "new StreamBuilder()" and call addRecord(RecordX.class), ... for each class. The order I call addRecord() does not seem to matter also. I workaround the problem by creating two streamBuilder and then creating two unmarshallesr. I can check for the record type myself and use the correct unmarshaller:
Anyway, this definitely looks like a bug to me. Since sometimes you cannot control how the input file is created, you need to predict such situations where IDs might start with the same string. |
If I have a fixed length records like this
Where X, XD and XR are the Ids, BeanIO cannot identify the record type correctly.
The text was updated successfully, but these errors were encountered: