|
From: Alexey L. <lou...@us...> - 2004-11-02 12:19:37
|
User: loubyansky
Date: 04/11/02 04:19:30
Modified: src/etc/conf/default Tag: Branch_3_2
standardjbosscmp-jdbc.xml
Log:
added pk-sql for jdbc2 pm
Revision Changes Path
No revision
No revision
1.39.2.53 +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.39.2.52
retrieving revision 1.39.2.53
diff -u -r1.39.2.52 -r1.39.2.53
--- standardjbosscmp-jdbc.xml 22 Sep 2004 09:03:37 -0000 1.39.2.52
+++ standardjbosscmp-jdbc.xml 2 Nov 2004 12:19:29 -0000 1.39.2.53
@@ -9,7 +9,7 @@
<!-- -->
<!-- ===================================================================== -->
-<!-- $Id: standardjbosscmp-jdbc.xml,v 1.39.2.52 2004/09/22 09:03:37 loubyansky Exp $ -->
+<!-- $Id: standardjbosscmp-jdbc.xml,v 1.39.2.53 2004/11/02 12:19:29 loubyansky Exp $ -->
<jbosscmp-jdbc>
@@ -2677,6 +2677,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 -->
|