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

EntityTypeParser ignores @Transient annotation on enum fields #77

Open
chrisribble opened this issue Jun 30, 2016 · 1 comment
Open

Comments

@chrisribble
Copy link

chrisribble commented Jun 30, 2016

com.datastax.driver.mapping.EntityTypeParser ignores @javax.persist.Transient annotations on enum fields and tries to load/persist them anyway.

Looking at the code, I don't think this was intentional; it looks like it's just a logic error. I'll submit a patch shortly with a fix after I finish testing.

@chrisribble
Copy link
Author

My use case works with the changes from #78 (mark an enum as @transient to avoid attempting to load/persist the field). I also ran the tests and all of the tests in EntityTypeParserTest.java pass,

About half of the tests in MappingSessionAsyncTest failed, but they seem to fail without my changes as well; I'm going to chalk that up to my inexperience with Maven and/or something different about the version of Cassandra that I'm using or something.

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.

1 participant