Source code revision

svn

summary: https://java.net/jira/browse/GLASSFISH_SAMPLES-53 Complete conditional flow example showing file upload
revision: 1185
author: edburns
date: 2013-09-06 15:19:47 UTC (1 year)
message: https://java.net/jira/browse/GLASSFISH_SAMPLES-53 Complete conditional flow example showing file upload

M javaee7/jsf/scrumtoys/app/src/main/java/jsf2/demo/scrum/web/controller/StoryManagerImpl.java
M javaee7/jsf/scrumtoys/entities/src/main/java/jsf2/demo/scrum/web/controller/StoryManager.java

- JPA cleanup: the biggest problem with the app as it presently stands
is the difference between entities managed by JPA and not. It's a
good idea to go throught the entire app and make it so there are
little-to-no instances where the app is dealing with unmanaged
entities.

- Remove the silly method

public String remove(Story story, UploadedFile file) {

M javaee7/jsf/scrumtoys/app/src/main/resources/META-INF/persistence.xml

- Store a JPA 1.1 property in here as a comment.

M javaee7/jsf/scrumtoys/entities/src/main/java/jsf2/demo/scrum/model/entities/Story.java

- Add a method to remove an uploaded file.

M javaee7/jsf/scrumtoys/entities/src/main/java/jsf2/demo/scrum/model/entities/UploadedFile.java

- Remove the named query, no longer needed.

- Add equals and hashcode.

M javaee7/jsf/scrumtoys/flows/manageStoryAttachments/src/main/java/jsf2/demos/scrum/manageStoryAttachments/UploadedFileList.java

- clean up the init() method.

- clean up the remove() method.



Change Path Actions
M trunk/ws/javaee7/jsf/scrumtoys/app/src/main/java/jsf2/demo/scrum/web/controller/StoryManagerImpl.java
M trunk/ws/javaee7/jsf/scrumtoys/app/src/main/resources/META-INF/persistence.xml
M trunk/ws/javaee7/jsf/scrumtoys/entities/src/main/java/jsf2/demo/scrum/model/entities/Story.java
M trunk/ws/javaee7/jsf/scrumtoys/entities/src/main/java/jsf2/demo/scrum/model/entities/UploadedFile.java
M trunk/ws/javaee7/jsf/scrumtoys/entities/src/main/java/jsf2/demo/scrum/web/controller/StoryManager.java
M trunk/ws/javaee7/jsf/scrumtoys/flows/manageStoryAttachments/src/main/java/jsf2/demos/scrum/manageStoryAttachments/UploadedFileList.java
Terms of Use; Privacy Policy; Copyright ©2013-2015 (revision 20150626.29986a4)
 
 
Close
loading
Please Confirm
Close