Skip to content
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

Lists returning empty after upgrading to version 3.0.0 #76

Open
ChandanNM opened this issue Jun 17, 2016 · 4 comments
Open

Lists returning empty after upgrading to version 3.0.0 #76

ChandanNM opened this issue Jun 17, 2016 · 4 comments

Comments

@ChandanNM
Copy link

The mapping session is failing to return contents of List. Always returns empty though the row contains values

select * from carrier where pkid=ab4fe6ab-d4fe-459f-9a16-c5aa0974bda7;

pkid | apiexists | apiserviceurl | audits | carriercode | country | countrycode | defaultoffer | description | displayname | name | providerfqdn | providername | routingprofile | services | vendor
--------------------------------------+-----------+---------------+--------+--------------------+---------+-------------+--------------+------------------+-------------+------+-----------------------+-------------------+--------------------+----------+--------
ab4fe6ab-d4fe-459f-9a16-c5aa0974bda7 | False | null | null | {'bogus': '12345'} | US | +1 | False | Carrier Description | null | Carrier | {'bogus': 'Carrier.com'} | {'bogus': 'Carrier'} | {'bogus': '24233'} | ['PSTN'] | Carrier

services is returned as []

Below is my DAO method -

@Inject
private MappingSession mappingSession;

@Override
public Carrier findCarrierByPkid(final UUID pkid) {
    return mappingSession.get(Carrier.class, pkid, TerminusUtils.getReadOptions(ONE));
}

This behavior is consistent and easily reproducible

@ChandanNM
Copy link
Author

ChandanNM commented Jun 17, 2016

Same for Map (String,String) as well

@ChandanNM
Copy link
Author

Hi Eugene, any luck reproducing this issue on your local workspace ?

@anishgt
Copy link

anishgt commented Jun 27, 2016

I too, faced the same issue for all three collections: List, Set and Map; using 3.0.0

@chrisribble
Copy link

I just created a PR that fixes this issue for single-level hierarchies of parameterized types and adds some more logging. Hopefully we can get it merged soon. @valchkou, what do you think about the changes?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants