-
1. Re: auto-increment template not found
lafr Mar 6, 2005 4:31 PM (in response to hfarid)The mapping entry for InformixDB in standardjbosscmp-jdbc.xml is missing an entry like
<auto-increment-template>?1</auto-increment-template>
.
This is used for the create table command. -
2. Re: auto-increment template not found
hfarid Mar 8, 2005 10:39 PM (in response to hfarid)Thanks a lot, that worked fine
I noticed that the <auto-increment> ..... <./> is sometimes set to
?1 IDENTITY and sometimes to ?1 auto_increment (what is the diffrenece??)
it worked fine at the deployment BUT
I could not create new entity, I am getting exception from the informix (inserting null value into key)
22:17:50,126 ERROR [MyEntity] Could not create entity
java.sql.SQLException: Primary key on table (mytable) has a field with a null key value.
at com.informix.jdbc.IfxSqli.addException(IfxSqli.java:3082)
at com.informix.jdbc.IfxSqli.receiveError(IfxSqli.java:3396)
at com.informix.jdbc.IfxSqli.dispatchMsg(IfxSqli.java:2259)
at com.informix.jdbc.IfxSqli.receiveMessage(IfxSqli.java:2179)
at com.informix.jdbc.IfxSqli.executeCommand(IfxSqli.java:721)
at com.informix.jdbc.IfxResultSet.executeUpdate(IfxResultSet.java:305)
at com.informix.jdbc.IfxStatement.executeUpdateImpl(IfxStatement.java:882)
Can anybody help please...
Thanks