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

findAll with Iterable parameter gives JpaSystemException when using Hibernate 5.2 [DATAJPA-914] #1271

Closed
spring-projects-issues opened this issue Jun 20, 2016 · 3 comments
Assignees
Labels
in: core type: bug
Milestone

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Jun 20, 2016

Hans Desmet opened DATAJPA-914 and commented

Given an entity

@Entity
public class Client {
	@Id
	private long id;
}

and a Spring data repository

package be.vdab;
import org.springframework.data.jpa.repository.JpaRepository;
public interface ClientRepository extends JpaRepository<Client, Long> {
}

this code

repository.findAll(Arrays.asList(1L, 2L));

gives this exception
org.springframework.orm.jpa.JpaSystemException: Could not determine a type for class: java.lang.Iterable; nested exception is org.hibernate.HibernateException: Could not determine a type for class: java.lang.Iterable
when used with Hibernate 5.2, not with Hibernate 5.1

The textbox "Reference URL" aboven points to a JUnit test which shows this exception


Affects: 1.10.1 (Hopper SR1)

Reference URL: https://github.com/desmethans/inerror.git

Issue Links:

  • DATAJPA-921 Migrating to Hibernate 5.2 is giving error Caused by: org.hibernate.HibernateException: Could not determine a type for class: java.util.Collection
    ("is duplicated by")

  • DATAJPA-1019 Make sure build runs on Hibernate 5

  • DATAJPA-911 Assert compatibility with Hibernate 5.2

Backported to: 1.11 RC1 (Ingalls), 1.10.6 (Hopper SR6), 1.9.7 (Gosling SR7)

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Jun 20, 2016

Oliver Drotbohm commented

That's due to breaking changes in Hibernate 5.2. We adapted our support for that in the recent Hopper SR2 release (see DATAJPA-911). So you should be able to get rid of that by just upgrading

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Jun 20, 2016

Oliver Drotbohm commented

Not as easy as I thought, yet another new bug in Hibernate 5.2. I filed HHH-10870

@spring-projects-issues
Copy link
Author

@spring-projects-issues spring-projects-issues commented Dec 21, 2016

Oliver Drotbohm commented

This should be fixed by upgrades to the latest Hibernate versions

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

No branches or pull requests

2 participants