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

Mapping Map<> with UDT in the value is not supported #1098

Closed
ymdomenech opened this issue Mar 10, 2021 · 2 comments
Closed

Mapping Map<> with UDT in the value is not supported #1098

ymdomenech opened this issue Mar 10, 2021 · 2 comments
Labels
type: bug A general bug

Comments

@ymdomenech
Copy link

ymdomenech commented Mar 10, 2021

@CassandraType(type = CassandraType.Name.MAP, userTypeName = "udt", typeArguments = {CassandraType.Name.TEXT, CassandraType.Name.UDT})
private Map<String, @Frozen UdtClass> map;

this will give a NullPointerException

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Mar 10, 2021
@mp911de mp911de added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Mar 11, 2021
@mp911de
Copy link
Member

mp911de commented Mar 11, 2021

Can you provide a bit more context on when this happens? Adding a stacktrace would be useful, too.

mp911de added a commit that referenced this issue Mar 12, 2021
We now correctly resolve user types for type arguments configured to UDT. These can either apply to keys or values depending on the typeArguments.

Closes #1098
mp911de added a commit that referenced this issue Mar 12, 2021
Move off deprecated StringUtils.isEmpty.

See #1098
@mp911de mp911de added this to the 3.0.8 (Neumann SR8) milestone Mar 12, 2021
mp911de added a commit that referenced this issue Mar 12, 2021
Move off deprecated StringUtils.isEmpty.

See #1098
@ymdomenech
Copy link
Author

ymdomenech commented Mar 12, 2021

I was planning to do a PR on the weekend because I found the problem but I realized that I have to read some docs before contribute. Thanks

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

No branches or pull requests

3 participants