Author: amarkhel
Date: 2008-12-02 03:53:53 -0500 (Tue, 02 Dec 2008)
New Revision: 11479
Modified:
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java
Log:
Modified:
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java
===================================================================
---
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java 2008-12-02
08:32:04 UTC (rev 11478)
+++
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/ImageAction.java 2008-12-02
08:53:53 UTC (rev 11479)
@@ -69,7 +69,7 @@
String login = image.getAlbum().getOwner().getLogin();
String albumName = image.getAlbumName();
image.getAlbum().removeImage(image);
- Album album = (Album)em.createQuery("from Album a where a.name=:albumName and
a.owner.login=:login").setParameter("albumName",
albumName).setParameter("owner", login).getSingleResult();
+ Album album = (Album)em.createQuery("from Album a where a.name=:albumName and
a.owner.login=:login").setParameter("albumName",
albumName).setParameter("login", login).getSingleResult();
album.addImage(image);
em.merge(album);
}
Show replies by date