Hello,

I have a problem with an insert-operation. I have the following java class:

public class MosObj extends MosMessage {
        
        private String objID;
        ... // just properties
        private String description;
        private List<MosExternalMetadata> mosExternalMetadata;
        // getter + setter
}

If I make an insert I get the following error message:
org.springframework.dao.DataIntegrityViolationException: SqlMapClient
operation; SQL [];   
--- The error occurred in sqlmaps/Mosobj.xml.  
--- The error occurred while applying a parameter map.  
--- Check the insertMosObj-InlineParameterMap.  
--- Check the statement (update failed).  
--- Cause: org.postgresql.util.PSQLException: ERROR: array value must start
with "{" or dimension information; nested exception is ...

The problem seems to be the list object. The strange thing is that I don't
want to persist this list object.
It's just there to store temporary data but I need it in that class. I want
just persist the other properties. If I comment out the list object there is
no problem :(

What could that be?

Tobias
-- 
View this message in context: 
http://www.nabble.com/Problem-with-insert-statement-tp20481658p20481658.html
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.

Reply via email to