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

Include not calling retryving lazy properties #1106

Open
cesarjhony opened this issue Feb 10, 2018 · 1 comment
Open

Include not calling retryving lazy properties #1106

cesarjhony opened this issue Feb 10, 2018 · 1 comment

Comments

@cesarjhony
Copy link

cesarjhony commented Feb 10, 2018

Using Vraptor 4.2.0.Final with JPA and Eclipselink 2.5.2 configurated for static weaving:
When a type of attribute marked with lazy (in model) and using an include in the controller (json), the attribute is not retrieving.
But when I put getAttribute() before , it's work fine.
Same configuration without getAttribute() in Hibernate is working, but in Eclipselink not is.

Estou usando Vraptor 4.2.0.Final com JPA e Eclipselink 2.5.2 configurado com static weaving:
Quando um atributo é marcado como Lazy, no modelo, e usando um include no controller, o atributor não é retornado.
Mas quando coloco getAttribute() antes, então funciona.
A mesma configuração, sem getAttribute(), funciona no Hibernate, mas não funciona no Eclipselink.

@cassunde
Copy link
Contributor

Tenta fazer uma query fazendo join fetch com atributo lazy

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

No branches or pull requests

2 participants