Hello,
I am attempting to use the Postgres 9.2 connector to populate a List business variable.
I have a Business Object called ErrorDetail, and have a Pool Business Variable errorDetailList - List
When I try to populate errorDetails using the “takes value of” from my Groovy script I get the following error:
javax.persistence.PersistenceException : "org.hibernate.PropertyAccessException: could not get a field value by reflection getter of com.company.model.ErrorDetail.persistenceId"
javax.persistence.PersistenceException: org.hibernate.PropertyAccessException: could not get a field value by reflection getter of com.company.model.ErrorDetail.persistenceId
Caused by: org.hibernate.PropertyAccessException: could not get a field value by reflection getter of com.company.model.ErrorDetail.persistenceId
Caused by: java.lang.IllegalArgumentException: Can not set java.lang.Long field com.company.model.ErrorDetail.persistenceId to com.company.model.ErrorDetail
In the script I am doing the following:
List ErrorDetailList = new ArrayList(); while(resultset.next()) { ErrorDetail errorDetail = new ErrorDetail(); // set the contents of errorDetail object. ErrorDetailList.add(errorDetail); } LOGGER.info("Returning from getErrorDetail "); return ErrorDetailList;Thanks