[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] @TableGenerator pkColumn and allocation

I am trying to use this annotation for primary key generation:

	<xsd:attribute name="identityKey" type="xsd:integer">
 			<xsd:annotation>
 				<xsd:appinfo source="teneo.jpa">
 					@TableGenerator(name = "PRQuoteCriteriaGen",
 									table="CSA4530T",
             						pkColumnName="SEQ_NAME",
             						valueColumnName="SEQ_NEXT_HI_VAL",
             						pkColumnValue="SEQ_RNQ4303T_01",
             						allocationSize=20)									
 					@Id
 					@GeneratedValue(strategy=TABLE, generator="PRQuoteCriteriaGen")
 					@Column(name="QUOTE_SK", unique="true")
 				</xsd:appinfo>
 			</xsd:annotation>
 		</xsd:attribute>    		

here is the generated mapping:

 		<id name="identityKey" type="java.math.BigInteger">
 			<column not-null="false" unique="true" name="quote_sk"/>
 			<generator class="hilo">
 				<param name="table">CSA4530T</param>
 				<param name="column">SEQ_NEXT_HI_VAL</param>
 				<param name="max_lo">0</param>
 			</generator>
 		</id>

What am I missing to get the pkColumn* and allocationSize to show in the mapping? I am using Teneo 1.0.1 v200809150739, EMF 2.4.0.v200808251517, and eclipse 3.4.2.R342. Thanks.