11-02-2009 09:02 AM
11-02-2009 09:05 AM
11-02-2009 09:08 AM
<insert id="insert_AuditEntry" parameterClass="AuditEntry" >
<selectKey resultClass="long" keyProperty="id">
select nextVal('alf_audit_entry_seq')
</selectKey>
insert into alf_audit_entry (id, audit_app_id, audit_user_id, audit_time, audit_values_id)
values (#id#, #auditApplicationId#, #auditUserId#, #auditTime#, #auditValuesId#)
</insert>
11-03-2009 07:47 PM
11-23-2009 04:55 AM
ERROR [web.context.ContextLoader] Context initialization failed
org.springframework.jdbc.BadSqlGrammarException: SqlMapClient operation; bad SQL
grammar []; nested exception is com.ibatis.common.jdbc.exception.NestedSQLExcep
tion:
— The error occurred in alfresco/ibatis/#resource.dialect#/avm-insert-SqlMap.x
ml.
— The error occurred while applying a parameter map.
— Check the alfresco.avm.insert_AVMStoreProperty-SelectKey-InlineParameterMap.
— Check the statement (query failed).
— Cause: org.postgresql.util.PSQLException: ERROR: relation "dual" does not ex
ist
Caused by: com.ibatis.common.jdbc.exception.NestedSQLException:
— The error occurred in alfresco/ibatis/#resource.dialect#/avm-insert-SqlMap.x
ml.
11-23-2009 08:28 AM
11-23-2009 09:03 AM
<insert id="insert_AVMStoreProperty" parameterMap="parameter_IdStorePropertyPatternMap">
<selectKey resultClass="long" keyProperty="id" type="pre">
select avm_store_properties_seq.nextval as value from dual
</selectKey>
insert into avm_store_properties (id, actual_type_n, persisted_type_n, multi_valued, boolean_value, long_value, float_value, double_value, string_value, serializable_value, avm_store_id, qname_id)
values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
</insert>
to:<insert id="insert_AVMStoreProperty" parameterMap="parameter_IdStorePropertyPatternMap">
<selectKey resultClass="long" keyProperty="id" type="pre">
select nextVal('avm_store_properties_seq')
</selectKey>
insert into avm_store_properties (id, actual_type_n, persisted_type_n, multi_valued, boolean_value, long_value, float_value, double_value, string_value, serializable_value, avm_store_id, qname_id)
values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
</insert>
11-23-2009 10:39 AM
11-23-2009 10:44 AM
Furthermore, note that the core sql maps of alfresco also have to be changed: see the posts above and verify whether it is complete now.?
You indeed gave the information I needed
11-23-2009 03:36 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.