Skip to content

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

@beikov

Description

@beikov

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?

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions