[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.tools.emf] Re: @TableGenerator pkColumn and allocation
|
- From: Martin Taal <mtaal@xxxxxxxxx>
- Date: Wed, 16 Sep 2009 03:39:09 +0200
- Newsgroups: eclipse.tools.emf
- Organization: EclipseCorner
- User-agent: Thunderbird 2.0.0.23 (X11/20090817)
Hi Tim,
The only answer I can give is that pkColumn* are not being picked up by Teneo. I now see that they are used for the
MultipleHiLoPerTableGenerator:
https://www.hibernate.org/hib_docs/v3/api/org/hibernate/id/MultipleHiLoPerTableGenerator.html
If you want support for the MultipleHiLoPerTableGenerator added then please enter a bugzilla.
Can you upgrade to 1.1.1? I prefer to add new features there...
Or if totally impossible can you upgrade to 1.0.4?
gr. Martin
Tim Barthel wrote:
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.
--
With Regards, Martin Taal
Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxxxxxxxx - mtaal@xxxxxxxxx
Web: www.springsite.com - www.elver.org