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

Paginated criteria builder with composite id does not work on DB2 #215

Closed
beikov opened this issue Jul 25, 2016 · 0 comments

Comments

@beikov
Copy link
Member

commented Jul 25, 2016

This is mainly a hibernate bug as hibernate should take care of properly mapping this, but since it apparently can't we have to think about a possible solution.
Right now, we just do a COUNT(DISTINCT id) for the count query which fails with embedded ids. I have to think about whether a distinct is required at all and if not, we could still do a count(*). If it is required, I don't know yet how we could implement this as we would need a composite type that has equality defined on a per-component level. Maybe the XML-type is a workaround for DB2?

@beikov beikov added the bug label Jul 25, 2016

@beikov beikov added this to the 1.1.1 milestone Jul 25, 2016

@beikov beikov self-assigned this Jul 25, 2016

beikov added a commit that referenced this issue Jul 25, 2016

@beikov beikov closed this in c3ba2bc Jul 25, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.