|
From: Alexey L. <lou...@us...> - 2004-11-12 14:32:08
|
User: loubyansky
Date: 04/11/12 06:32:00
Modified: src/etc/conf/default Tag: Branch_4_0
standardjbosscmp-jdbc.xml
Log:
ported pk-sql for jdbc2 pm from Branch_3_2
Revision Changes Path
No revision
No revision
1.84.2.3 +8 -1 jboss/src/etc/conf/default/standardjbosscmp-jdbc.xml
Index: standardjbosscmp-jdbc.xml
===================================================================
RCS file: /cvsroot/jboss/jboss/src/etc/conf/default/standardjbosscmp-jdbc.xml,v
retrieving revision 1.84.2.2
retrieving revision 1.84.2.3
diff -u -r1.84.2.2 -r1.84.2.3
--- standardjbosscmp-jdbc.xml 3 Nov 2004 13:33:15 -0000 1.84.2.2
+++ standardjbosscmp-jdbc.xml 12 Nov 2004 14:31:59 -0000 1.84.2.3
@@ -9,7 +9,7 @@
<!-- -->
<!-- ===================================================================== -->
-<!-- $Id: standardjbosscmp-jdbc.xml,v 1.84.2.2 2004/11/03 13:33:15 loubyansky Exp $ -->
+<!-- $Id: standardjbosscmp-jdbc.xml,v 1.84.2.3 2004/11/12 14:31:59 loubyansky Exp $ -->
<jbosscmp-jdbc>
@@ -2798,6 +2798,13 @@
<!-- uses JDBC 3.0 getGeneratedKeys() method -->
<entity-command name="get-generated-keys"
class="org.jboss.ejb.plugins.cmp.jdbc.keygen.JDBC30GeneratedKeysCreateCommand"/>
+
+ <!-- pk-sql for jdbc2 pm -->
+ <entity-command name="jdbc2pm-pk-sql"
+ class="org.jboss.ejb.plugins.cmp.jdbc2.PkSqlCreateCommand">
+ <!-- change to define SQL used to obtain key prior to insert -->
+ <attribute name="pk-sql">SELECT CURRENT_TIMESTAMP</attribute>
+ </entity-command>
</entity-commands>
<!-- reserved words that should not be used as table names -->
|