Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.1
Name and version of the database you are using:Informix 9
hello all,
I am trying to set values into a Hibernate object called project from values passed in the request from a JSP page
// Code start
this is my code
/* create a new project with passed parameters */
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
Project theProject = new Project();
theProject.setProjectId(Integer.valueOf(request.getParameter("projectId")== null ? "0" :request.getParameter("projectId")));
theProject.setEditBy(request.getParameter("userid"));
theProject.setEditDt(new java.util.Date());
theProject.setManager(request.getParameter("manager"));
theProject.setProjectDesc(request.getParameter("projectDesc"));
theProject.setSection(request.getParameter("section"));
theProject.setProjectNm(request.getParameter("projectNm"));
theProject.setStartDt(sdf.parse(request.getParameter("startDt")));
java.util.ArrayList myProjects = new ArrayList(0);
//Code End
If I remove the line highlighted above my code runs and all other values are stored in the database. If I leave this line in, the JSP page will not load and no values are stored anywhere. Can anyone see what I am doing wrong. The value is passed as a Parameter from the JSP page and the type in hibernate is a java.util.Date.
All help appreciated
Connie