[forge-issues] [JBoss JIRA] (FORGE-813) Implement a strategy to fix the open session in view problem in the generated REST resources
George Gastaldi (JIRA)
jira-events at lists.jboss.org
Wed Mar 20 12:50:42 EDT 2013
[ https://issues.jboss.org/browse/FORGE-813?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
George Gastaldi updated FORGE-813:
----------------------------------
Status: Closed (was: Pull Request Sent)
Resolution: Done
Merged
> Implement a strategy to fix the open session in view problem in the generated REST resources
> --------------------------------------------------------------------------------------------
>
> Key: FORGE-813
> URL: https://issues.jboss.org/browse/FORGE-813
> Project: Forge
> Issue Type: Feature Request
> Components: Java EE APIs
> Affects Versions: 1.2.2.Final
> Reporter: Vineet Reynolds
> Assignee: Vineet Reynolds
> Fix For: 1.2.3.Final
>
>
> The generated REST resources for objects with 1:M and M:M relations, require eager fetching to be enabled on the related JPA entities, to bypass the open-session-in-view problem.
> The generated REST resources should not require the entities themselves to use eager fetching by default. It would be better to use specialized JPQL queries to achieve this.
> Or for that matter, use a combination of specialized JPQL queries that limit the objects being retrieved (say, one-level deep) and custom serializers that can operate on this partial object graph.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the forge-issues
mailing list