You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@shindig.apache.org by "Sylvain Brocard (JIRA)" <ji...@apache.org> on 2010/02/10 16:21:27 UTC
[jira] Commented: (SHINDIG-1057) [PATCH] Samples project
[ https://issues.apache.org/jira/browse/SHINDIG-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12832026#action_12832026 ]
Sylvain Brocard commented on SHINDIG-1057:
------------------------------------------
I think the best way to avoid stack overflow would be to map the PersonDb back to a PersonImpl. This would avoid all loops inside DB objects which creates the issue inside the JsonSerializer. I think we can see implementations (PersonImpl and so on) as DTO which can be serialized as JSON or XML. So those are the ones which should be use between layer. Here web and persistence.
> [PATCH] Samples project
> -----------------------
>
> Key: SHINDIG-1057
> URL: https://issues.apache.org/jira/browse/SHINDIG-1057
> Project: Shindig
> Issue Type: Improvement
> Components: Java
> Affects Versions: 1.1-BETA1
> Environment: Eclipse, Hibernate
> Reporter: Gary Stevens
> Attachments: patch.txt
>
>
> This patch includes changes in order to run Shindig with a database using Hibernate. Based on Shindig trunk revision 769318 from April 28, 2009. The patch file was made inside of Eclipse.
> Edited classes:
> EnumImpl.java
> AddressDb.java
> BodyTypeDb.java
> EnumDb.java
> MediaItemDb.java
> NameDb.java
> PersonAddressDb.java
> PersonDb.java
> Added the class: HibernateEntityManagerProvider.java
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.