We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To prevent ugly stuff like this:
Review.Rating rating = values[i]; List<ReviewRating> reviewRatings = ReviewRating.whereReviewId().is(review.id) .and(ReviewRating.whereRating().is(ReviewRating.Rating.valueOf(rating.name()))).get();
Instead, it could look like this if the enum was imported instead of redefined in the other table:
Review.Rating rating = values[i]; List<ReviewRating> reviewRatings = ReviewRating.whereReviewId().is(review.id) .and(ReviewRating.whereRating().is(rating).get();
Details: We have a enum named Rating defined twice in the Review table and the ReviewRating table even though its exactly the same enum used.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To prevent ugly stuff like this:
Instead, it could look like this if the enum was imported instead of redefined in the other table:
Details: We have a enum named Rating defined twice in the Review table and the ReviewRating table even though its exactly the same enum used.
The text was updated successfully, but these errors were encountered: