Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] upper case on only some generated column names
[Teneo] upper case on only some generated column names [message #423634] Fri, 03 October 2008 15:55 Go to next message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
Hi,

When I generate for DB2 9.5 some of the column names used for the
foreign key are coming out as upper case. For this complexType

<xsd:complexType name="IssueData">
<xsd:sequence minOccurs="0" maxOccurs="1">
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:clearingSettlement" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:collateral" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:delivery" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:governingLaw" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:incomeType" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:issuePrice" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="1" ref="gensec:instrumentDomain">
<xsd:annotation>
<xsd:appinfo
source="teneo.jpa">@PrimaryKeyJoinColumn</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="1" ref="gensec:issuanceSubclass" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="1" ref="gensec:indexDomain" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="1" ref="gensec:interestRateClass" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="1" ref="gensec:foreignExchangeDomain" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="1" ref="gensec:industrySpecificClass" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="1" ref="gensec:portfolioDomain" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="1" ref="gensec:economicClass" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="1" ref="gensec:demographicClass" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="1" ref="gensec:marketStatsClass" />
<xsd:element minOccurs="0" maxOccurs="unbounded"
ref="gensec:issueFees" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:issueMarketType" />
<xsd:element minOccurs="0" maxOccurs="1" ref="gensec:issuerRef" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:jurisdiction" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:liquidationStatusType" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:location" />
<xsd:element minOccurs="0" maxOccurs="1" ref="gensec:offerType" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:placeOfListing" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:placeOfTrade" />
<xsd:element minOccurs="0" maxOccurs="1" ref="gensec:programType" />
<xsd:element minOccurs="0" maxOccurs="unbounded"
ref="gensec:regulatory" />
<xsd:element minOccurs="0" maxOccurs="unbounded"
ref="gensec:salesRestrictionsType" />
<xsd:element minOccurs="0" maxOccurs="unbounded"
ref="gensec:targetMarketType" />
<xsd:element minOccurs="0" maxOccurs="unbounded"
ref="gensec:transferSize" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:underwriting" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:votingRightsType" />
<xsd:element ecore:opposite="issueData" minOccurs="0"
maxOccurs="unbounded" ref="gensec:instrumentIdentifier" />
<xsd:element minOccurs="0" maxOccurs="unbounded"
name="issueDataAgent" type="gensec:Agent">
<xsd:annotation>
<xsd:appinfo source="teneo.jpa"> @OneToMany(indexed=false,
mappedBy="agent") @JoinTable(name="IssueDataAgent")</xsd:appinfo>
</xsd:annotation>
</xsd:element>
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:accrualBasisType" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:accrualConventionType" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:indicatorsType" />
<xsd:element minOccurs="0" maxOccurs="1"
ref="gensec:modificationType" />
</xsd:sequence>
<xsd:attribute name="id" type="xsd:int">
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">@Id
@GeneratedValue(strategy=IDENTITY)</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>

All from issuanceSubclass to marketStatsClass end up with a uppercase
column name. Everything else has lower case column names.

Not sure you can do anything about it, as generated hibernate.hbm.xml
does not have a upper case name apart from the indexes throughout.

thx.

David
Re: [Teneo] upper case on only some generated column names [message #423637 is a reply to message #423634] Fri, 03 October 2008 16:03 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi David,
If the generated hbm does not have uppercased columns then I don't really know where they are coming
from. Maybe the hibernate db dialect decides this?
Let me know if you find the reason.

gr. Martin

David Wynter wrote:
> Hi,
>
> When I generate for DB2 9.5 some of the column names used for the
> foreign key are coming out as upper case. For this complexType
>
> <xsd:complexType name="IssueData">
> <xsd:sequence minOccurs="0" maxOccurs="1">
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:clearingSettlement" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:collateral" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:delivery" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:governingLaw" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:incomeType" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:issuePrice" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="1" ref="gensec:instrumentDomain">
> <xsd:annotation>
> <xsd:appinfo
> source="teneo.jpa">@PrimaryKeyJoinColumn</xsd:appinfo>
> </xsd:annotation>
> </xsd:element>
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="1" ref="gensec:issuanceSubclass" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="1" ref="gensec:indexDomain" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="1" ref="gensec:interestRateClass" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="1" ref="gensec:foreignExchangeDomain" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="1" ref="gensec:industrySpecificClass" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="1" ref="gensec:portfolioDomain" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="1" ref="gensec:economicClass" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="1" ref="gensec:demographicClass" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="1" ref="gensec:marketStatsClass" />
> <xsd:element minOccurs="0" maxOccurs="unbounded"
> ref="gensec:issueFees" />
> <xsd:element minOccurs="0" maxOccurs="1"
> ref="gensec:issueMarketType" />
> <xsd:element minOccurs="0" maxOccurs="1" ref="gensec:issuerRef" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:jurisdiction" />
> <xsd:element minOccurs="0" maxOccurs="1"
> ref="gensec:liquidationStatusType" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:location" />
> <xsd:element minOccurs="0" maxOccurs="1" ref="gensec:offerType" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:placeOfListing" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:placeOfTrade" />
> <xsd:element minOccurs="0" maxOccurs="1" ref="gensec:programType" />
> <xsd:element minOccurs="0" maxOccurs="unbounded"
> ref="gensec:regulatory" />
> <xsd:element minOccurs="0" maxOccurs="unbounded"
> ref="gensec:salesRestrictionsType" />
> <xsd:element minOccurs="0" maxOccurs="unbounded"
> ref="gensec:targetMarketType" />
> <xsd:element minOccurs="0" maxOccurs="unbounded"
> ref="gensec:transferSize" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:underwriting" />
> <xsd:element minOccurs="0" maxOccurs="1"
> ref="gensec:votingRightsType" />
> <xsd:element ecore:opposite="issueData" minOccurs="0"
> maxOccurs="unbounded" ref="gensec:instrumentIdentifier" />
> <xsd:element minOccurs="0" maxOccurs="unbounded"
> name="issueDataAgent" type="gensec:Agent">
> <xsd:annotation>
> <xsd:appinfo source="teneo.jpa"> @OneToMany(indexed=false,
> mappedBy="agent") @JoinTable(name="IssueDataAgent")</xsd:appinfo>
> </xsd:annotation>
> </xsd:element>
> <xsd:element minOccurs="0" maxOccurs="1"
> ref="gensec:accrualBasisType" />
> <xsd:element minOccurs="0" maxOccurs="1"
> ref="gensec:accrualConventionType" />
> <xsd:element minOccurs="0" maxOccurs="1"
> ref="gensec:indicatorsType" />
> <xsd:element minOccurs="0" maxOccurs="1"
> ref="gensec:modificationType" />
> </xsd:sequence>
> <xsd:attribute name="id" type="xsd:int">
> <xsd:annotation>
> <xsd:appinfo source="teneo.jpa">@Id
> @GeneratedValue(strategy=IDENTITY)</xsd:appinfo>
> </xsd:annotation>
> </xsd:attribute>
> </xsd:complexType>
>
> All from issuanceSubclass to marketStatsClass end up with a uppercase
> column name. Everything else has lower case column names.
>
> Not sure you can do anything about it, as generated hibernate.hbm.xml
> does not have a upper case name apart from the indexes throughout.
>
> thx.
>
> David


--

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@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Previous Topic:OCL validation example - live vs. batch validation
Next Topic:Aspect Orientet Programming (AOP) using reflective feature delegation?
Goto Forum:
  


Current Time: Sun Jan 26 20:08:24 GMT 2020

Powered by FUDForum. Page generated in 0.02308 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top