tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BKumar <bibhuti.ku...@creditpointe.com>
Subject Sequence generator are not working form CMP2.1 as expected
Date Tue, 08 Jan 2013 10:22:48 GMT
Hi, 

Is there any way to provide sequence generator(Such  as ) in openejb-xml.jar
so that generated orm.xml can take generator for there?I am  trying to  run
my  old CMP2.1 on Tomee+. Please see below the content of openejb-jar.xml.

Openejb-jar.xml:
<entity>
		<ejb-name>Emp</ejb-name>
		<jndi-name>EmpBean</jndi-name>
		<local-jndi-name>EmpBean</local-jndi-name>
		<table-name>EMP_TEST_ENTITY</table-name>
		<cmp-field-mapping>
                  <cmp-field-name>id</cmp-field-name>
                  <table-column>ID</table-column>
            </cmp-field-mapping>
            <cmp-field-mapping>
                  <cmp-field-name>name</cmp-field-name>
                  <table-column>name1</table-column>
            </cmp-field-mapping>
            <cmp-field-mapping>
                  <cmp-field-name>des</cmp-field-name>
                  <table-column>des</table-column>
            </cmp-field-mapping>
            <primkey-field>id</primkey-field>
			<key-generator>
			<sql-generator>
				<sql>select SEQUENCE_NUMBER from RAGE_SEQUENCE_MASTER where
SEQUENCE_NAME = 'RD_SEQUENCE'</sql>
				<return-type>java.lang.Integer</return-type>
			</sql-generator>
			</key-generator>
		
		</entity>

Thanks,
BK



--
View this message in context: http://openejb.979440.n4.nabble.com/Sequence-generator-are-not-working-form-CMP2-1-as-expected-tp4660155.html
Sent from the OpenEJB User mailing list archive at Nabble.com.

Mime
View raw message