Author: amarkhel
Date: 2009-04-14 11:41:04 -0400 (Tue, 14 Apr 2009)
New Revision: 13576
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java
Log:
Fix RF-6786
Modified:
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java
===================================================================
---
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java 2009-04-14
15:04:14 UTC (rev 13575)
+++
trunk/test-applications/realworld2/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java 2009-04-14
15:41:04 UTC (rev 13576)
@@ -172,6 +172,7 @@
public void addComment(Comment comment) throws RealworldException {
try{
comment.getImage().addComment(comment);
+ em.persist(comment);
em.flush();
}
catch(Exception e){