Author: amarkhel
Date: 2008-12-10 11:00:00 -0500 (Wed, 10 Dec 2008)
New Revision: 11700
Modified:
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/AlbumAction.java
Log:
Modified:
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/AlbumAction.java
===================================================================
---
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/AlbumAction.java 2008-12-10
15:57:40 UTC (rev 11699)
+++
trunk/test-applications/realworld/ejb/src/main/java/org/richfaces/realworld/service/AlbumAction.java 2008-12-10
16:00:00 UTC (rev 11700)
@@ -26,6 +26,9 @@
* @see org.richfaces.realworld.service.IAlbumAction#addAlbum()
*/
public void addAlbum(Album album) {
+ if(album.getChangedName() != album.getName()){
+ album.setName(album.getChangedName());
+ }
em.persist(album);
user.addAlbum(album);
em.flush();
Show replies by date