Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

@Converter not fetching correct entity type #77

Open
ajayshankarr1 opened this issue Aug 5, 2015 · 1 comment
Open

@Converter not fetching correct entity type #77

ajayshankarr1 opened this issue Aug 5, 2015 · 1 comment
Labels

Comments

@ajayshankarr1
Copy link

EntityQuery class line number 125
query is not Typed hence type information is lost while creating the query and so @converter in JPA is not properly getting the entity.

In the loadItems method line number 152
final javax.persistence.TypedQuery query = entityManager.createQuery(cq);

here query is properly created as type information is specified.
@tlaukkan

@tlaukkan
Copy link
Owner

Hi, the type of field does not affect what the method returns. Both lines use entityManager.createQuery(cq) with same type of argument. Could you elaborate what is the problem you are facing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants