Thanks for your prompt reply,
But it doesnt work because it's probably linked to the file: "TaskBean.java". When i do the changes in both "Task.jsp" and "TaskBean.java" and redeploy the "app.war" ive got an "error message".
Following lines are taken from the "Taskbean.java":
public String saveAndClose() {
// save
save();
// close the task instance
String transitionButton = JsfHelper.getParameter("taskform:transitionButton");
log.debug("Submitted button:" + transitionButton);
TaskInstance taskInstance = taskMgmtSession.loadTaskInstance(taskInstanceId);
if ("Save and Close Task".equals(transitionButton)) {
//if ("Hello".equals(transitionButton)) {
taskInstance.end();
} else {
taskInstance.end(transitionButton);
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047796#4047796
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047796
Let's say Factory.java and Product.java are entity classes.
There is a one-to-many unidirectional relationship from Factory to Product.
| @Entity
| public class Factory implements Serializable {
| @Id
| private Long id;
|
| // This is a collection of Product ids. How to map this???
| private List<Long> productIds;
| ......
| }
|
| @Entity
| public class Product implements Serializable {
|
| @Id
| private Long id;
| ......
| }
|
My question is: how to write the mapping metadata for Factory.productIds?
(I know List< Long > can't be persisted. But how can JPA solve this simple case?)
TIA.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4047789#4047789
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4047789