Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [Teneo] Ignores @Column case
[Teneo] Ignores @Column case [message #755994] Thu, 10 November 2011 12:30 Go to next message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
Hi,

I have this
<xsd:complexType name="TransformLog">
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">@Table(name="LOGTRANS")</xsd:appinfo>
<xsd:documentation>
<xsd:p>The audit of processed records reported by data
processor</xsd:p>
</xsd:documentation>
</xsd:annotation>
<xsd:attribute name="id" type="xsd:int">
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">@Id
@GeneratedValue(strategy=IDENTITY) @Column(name="ID")</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="time" type="datamanagerlogs:javaDate">
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">@Temporal(TIMESTAMP)
@Column(name="TIME")</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="cat" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">@Column(name="CAT")</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="thread" type="xsd:string">
<xsd:annotation>
<xsd:appinfo
source="teneo.jpa">@Column(name="THREAD")</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
<xsd:attribute name="msg" type="xsd:string">
<xsd:annotation>
<xsd:appinfo source="teneo.jpa">@Column(name="MSG")</xsd:appinfo>
</xsd:annotation>
</xsd:attribute>
</xsd:complexType>
<xsd:element name="transformLog" type="datamanagerlogs:TransformLog"/>

I need the columns to be UPPERCASE so that I can view the log4j log
file, which it seems requires UPPERCASE. But Hibernate ignores the case
of these @Column annotations and creates them lowercase. How to get it
to generate UPPERCASE table and column names?

Thx.

David
Re: [Teneo] Ignores @Column case [message #756044 is a reply to message #755994] Thu, 10 November 2011 15:55 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi David,
You can set this option to false to prevent automatic casing/truncating of manually entered names of db schema elements:
teneo.naming.auto_adapt_manual_set_sql_names

Then there are some other relevant options which make sense to look at, for example:
teneo.naming.strategy (to support casing of namings)

See the options page for info:
http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options
and specifically this part:
http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options#SQL_Naming_Related_Options

gr. Martin

On 11/10/2011 01:30 PM, David Wynter wrote:
> Hi,
>
> I have this
> <xsd:complexType name="TransformLog">
> <xsd:annotation>
> <xsd:appinfo source="teneo.jpa">@Table(name="LOGTRANS")</xsd:appinfo>
> <xsd:documentation>
> <xsd:p>The audit of processed records reported by data processor</xsd:p>
> </xsd:documentation>
> </xsd:annotation>
> <xsd:attribute name="id" type="xsd:int">
> <xsd:annotation>
> <xsd:appinfo source="teneo.jpa">@Id @GeneratedValue(strategy=IDENTITY) @Column(name="ID")</xsd:appinfo>
> </xsd:annotation>
> </xsd:attribute>
> <xsd:attribute name="time" type="datamanagerlogs:javaDate">
> <xsd:annotation>
> <xsd:appinfo source="teneo.jpa">@Temporal(TIMESTAMP) @Column(name="TIME")</xsd:appinfo>
> </xsd:annotation>
> </xsd:attribute>
> <xsd:attribute name="cat" type="xsd:string">
> <xsd:annotation>
> <xsd:appinfo source="teneo.jpa">@Column(name="CAT")</xsd:appinfo>
> </xsd:annotation>
> </xsd:attribute>
> <xsd:attribute name="thread" type="xsd:string">
> <xsd:annotation>
> <xsd:appinfo source="teneo.jpa">@Column(name="THREAD")</xsd:appinfo>
> </xsd:annotation>
> </xsd:attribute>
> <xsd:attribute name="msg" type="xsd:string">
> <xsd:annotation>
> <xsd:appinfo source="teneo.jpa">@Column(name="MSG")</xsd:appinfo>
> </xsd:annotation>
> </xsd:attribute>
> </xsd:complexType>
> <xsd:element name="transformLog" type="datamanagerlogs:TransformLog"/>
>
> I need the columns to be UPPERCASE so that I can view the log4j log file, which it seems requires UPPERCASE. But
> Hibernate ignores the case of these @Column annotations and creates them lowercase. How to get it to generate UPPERCASE
> table and column names?
>
> 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
Re: [Teneo] Ignores @Column case [message #756049 is a reply to message #756044] Thu, 10 November 2011 16:18 Go to previous messageGo to next message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
Hi,

Trying to find out how to set these options. Found that both links on
this page
http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options#SQL_Naming_Related_Options
to PersistanceOptions are broken.

David

On 10/11/11 15:55, Martin Taal wrote:
> Hi David,
> You can set this option to false to prevent automatic casing/truncating
> of manually entered names of db schema elements:
> teneo.naming.auto_adapt_manual_set_sql_names
>
> Then there are some other relevant options which make sense to look at,
> for example:
> teneo.naming.strategy (to support casing of namings)
>
> See the options page for info:
> http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options
> and specifically this part:
> http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options#SQL_Naming_Related_Options
>
>
> gr. Martin
>
> On 11/10/2011 01:30 PM, David Wynter wrote:
>> Hi,
>>
>> I have this
>> <xsd:complexType name="TransformLog">
>> <xsd:annotation>
>> <xsd:appinfo source="teneo.jpa">@Table(name="LOGTRANS")</xsd:appinfo>
>> <xsd:documentation>
>> <xsd:p>The audit of processed records reported by data processor</xsd:p>
>> </xsd:documentation>
>> </xsd:annotation>
>> <xsd:attribute name="id" type="xsd:int">
>> <xsd:annotation>
>> <xsd:appinfo source="teneo.jpa">@Id @GeneratedValue(strategy=IDENTITY)
>> @Column(name="ID")</xsd:appinfo>
>> </xsd:annotation>
>> </xsd:attribute>
>> <xsd:attribute name="time" type="datamanagerlogs:javaDate">
>> <xsd:annotation>
>> <xsd:appinfo source="teneo.jpa">@Temporal(TIMESTAMP)
>> @Column(name="TIME")</xsd:appinfo>
>> </xsd:annotation>
>> </xsd:attribute>
>> <xsd:attribute name="cat" type="xsd:string">
>> <xsd:annotation>
>> <xsd:appinfo source="teneo.jpa">@Column(name="CAT")</xsd:appinfo>
>> </xsd:annotation>
>> </xsd:attribute>
>> <xsd:attribute name="thread" type="xsd:string">
>> <xsd:annotation>
>> <xsd:appinfo source="teneo.jpa">@Column(name="THREAD")</xsd:appinfo>
>> </xsd:annotation>
>> </xsd:attribute>
>> <xsd:attribute name="msg" type="xsd:string">
>> <xsd:annotation>
>> <xsd:appinfo source="teneo.jpa">@Column(name="MSG")</xsd:appinfo>
>> </xsd:annotation>
>> </xsd:attribute>
>> </xsd:complexType>
>> <xsd:element name="transformLog" type="datamanagerlogs:TransformLog"/>
>>
>> I need the columns to be UPPERCASE so that I can view the log4j log
>> file, which it seems requires UPPERCASE. But
>> Hibernate ignores the case of these @Column annotations and creates
>> them lowercase. How to get it to generate UPPERCASE
>> table and column names?
>>
>> Thx.
>>
>> David
>
>
Re: [Teneo] Ignores @Column case [message #756055 is a reply to message #756049] Thu, 10 November 2011 16:48 Go to previous messageGo to next message
David Wynter is currently offline David WynterFriend
Messages: 4624
Registered: July 2009
Senior Member
I looked at the examples in Git and read the documentation. It is not at
all clear where you set teneo.naming.auto_adapt_manual_set_sql_names. It
is not in PersistanceOptions. How are these set?

thx.

David


On 10/11/11 16:18, David Wynter wrote:
> Hi,
>
> Trying to find out how to set these options. Found that both links on
> this page
> http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options#SQL_Naming_Related_Options
> to PersistanceOptions are broken.
>
> David
>
> On 10/11/11 15:55, Martin Taal wrote:
>> Hi David,
>> You can set this option to false to prevent automatic casing/truncating
>> of manually entered names of db schema elements:
>> teneo.naming.auto_adapt_manual_set_sql_names
>>
>> Then there are some other relevant options which make sense to look at,
>> for example:
>> teneo.naming.strategy (to support casing of namings)
>>
>> See the options page for info:
>> http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options
>> and specifically this part:
>> http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options#SQL_Naming_Related_Options
>>
>>
>>
>> gr. Martin
>>
>> On 11/10/2011 01:30 PM, David Wynter wrote:
>>> Hi,
>>>
>>> I have this
>>> <xsd:complexType name="TransformLog">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Table(name="LOGTRANS")</xsd:appinfo>
>>> <xsd:documentation>
>>> <xsd:p>The audit of processed records reported by data processor</xsd:p>
>>> </xsd:documentation>
>>> </xsd:annotation>
>>> <xsd:attribute name="id" type="xsd:int">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Id @GeneratedValue(strategy=IDENTITY)
>>> @Column(name="ID")</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:attribute>
>>> <xsd:attribute name="time" type="datamanagerlogs:javaDate">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Temporal(TIMESTAMP)
>>> @Column(name="TIME")</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:attribute>
>>> <xsd:attribute name="cat" type="xsd:string">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Column(name="CAT")</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:attribute>
>>> <xsd:attribute name="thread" type="xsd:string">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Column(name="THREAD")</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:attribute>
>>> <xsd:attribute name="msg" type="xsd:string">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Column(name="MSG")</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:attribute>
>>> </xsd:complexType>
>>> <xsd:element name="transformLog" type="datamanagerlogs:TransformLog"/>
>>>
>>> I need the columns to be UPPERCASE so that I can view the log4j log
>>> file, which it seems requires UPPERCASE. But
>>> Hibernate ignores the case of these @Column annotations and creates
>>> them lowercase. How to get it to generate UPPERCASE
>>> table and column names?
>>>
>>> Thx.
>>>
>>> David
>>
>>
>
Re: [Teneo] Ignores @Column case [message #756079 is a reply to message #756055] Thu, 10 November 2011 19:31 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi David,
Afaics when looking at the source code there is this constant: PersistenceOptions.AUTO_ADAPT_MANUAL_SET_SQL_NAMES

can you double check?

gr. Martin

On 11/10/2011 05:48 PM, David Wynter wrote:
> I looked at the examples in Git and read the documentation. It is not at all clear where you set
> teneo.naming.auto_adapt_manual_set_sql_names. It is not in PersistanceOptions. How are these set?
>
> thx.
>
> David
>
>
> On 10/11/11 16:18, David Wynter wrote:
>> Hi,
>>
>> Trying to find out how to set these options. Found that both links on
>> this page
>> http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options#SQL_Naming_Related_Options
>> to PersistanceOptions are broken.
>>
>> David
>>
>> On 10/11/11 15:55, Martin Taal wrote:
>>> Hi David,
>>> You can set this option to false to prevent automatic casing/truncating
>>> of manually entered names of db schema elements:
>>> teneo.naming.auto_adapt_manual_set_sql_names
>>>
>>> Then there are some other relevant options which make sense to look at,
>>> for example:
>>> teneo.naming.strategy (to support casing of namings)
>>>
>>> See the options page for info:
>>> http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options
>>> and specifically this part:
>>> http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options#SQL_Naming_Related_Options
>>>
>>>
>>>
>>> gr. Martin
>>>
>>> On 11/10/2011 01:30 PM, David Wynter wrote:
>>>> Hi,
>>>>
>>>> I have this
>>>> <xsd:complexType name="TransformLog">
>>>> <xsd:annotation>
>>>> <xsd:appinfo source="teneo.jpa">@Table(name="LOGTRANS")</xsd:appinfo>
>>>> <xsd:documentation>
>>>> <xsd:p>The audit of processed records reported by data processor</xsd:p>
>>>> </xsd:documentation>
>>>> </xsd:annotation>
>>>> <xsd:attribute name="id" type="xsd:int">
>>>> <xsd:annotation>
>>>> <xsd:appinfo source="teneo.jpa">@Id @GeneratedValue(strategy=IDENTITY)
>>>> @Column(name="ID")</xsd:appinfo>
>>>> </xsd:annotation>
>>>> </xsd:attribute>
>>>> <xsd:attribute name="time" type="datamanagerlogs:javaDate">
>>>> <xsd:annotation>
>>>> <xsd:appinfo source="teneo.jpa">@Temporal(TIMESTAMP)
>>>> @Column(name="TIME")</xsd:appinfo>
>>>> </xsd:annotation>
>>>> </xsd:attribute>
>>>> <xsd:attribute name="cat" type="xsd:string">
>>>> <xsd:annotation>
>>>> <xsd:appinfo source="teneo.jpa">@Column(name="CAT")</xsd:appinfo>
>>>> </xsd:annotation>
>>>> </xsd:attribute>
>>>> <xsd:attribute name="thread" type="xsd:string">
>>>> <xsd:annotation>
>>>> <xsd:appinfo source="teneo.jpa">@Column(name="THREAD")</xsd:appinfo>
>>>> </xsd:annotation>
>>>> </xsd:attribute>
>>>> <xsd:attribute name="msg" type="xsd:string">
>>>> <xsd:annotation>
>>>> <xsd:appinfo source="teneo.jpa">@Column(name="MSG")</xsd:appinfo>
>>>> </xsd:annotation>
>>>> </xsd:attribute>
>>>> </xsd:complexType>
>>>> <xsd:element name="transformLog" type="datamanagerlogs:TransformLog"/>
>>>>
>>>> I need the columns to be UPPERCASE so that I can view the log4j log
>>>> file, which it seems requires UPPERCASE. But
>>>> Hibernate ignores the case of these @Column annotations and creates
>>>> them lowercase. How to get it to generate UPPERCASE
>>>> table and column names?
>>>>
>>>> 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
Re: [Teneo] Ignores @Column case [message #756081 is a reply to message #756049] Thu, 10 November 2011 19:35 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi,
Thanks for letting me know, Teneo moved to git, and I forgot to update the links on the wiki. These have been repaired.

gr. Martin

On 11/10/2011 05:18 PM, David Wynter wrote:
> Hi,
>
> Trying to find out how to set these options. Found that both links on this page
> http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options#SQL_Naming_Related_Options to PersistanceOptions are broken.
>
> David
>
> On 10/11/11 15:55, Martin Taal wrote:
>> Hi David,
>> You can set this option to false to prevent automatic casing/truncating
>> of manually entered names of db schema elements:
>> teneo.naming.auto_adapt_manual_set_sql_names
>>
>> Then there are some other relevant options which make sense to look at,
>> for example:
>> teneo.naming.strategy (to support casing of namings)
>>
>> See the options page for info:
>> http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options
>> and specifically this part:
>> http://wiki.eclipse.org/Teneo/Hibernate/Configuration_Options#SQL_Naming_Related_Options
>>
>>
>> gr. Martin
>>
>> On 11/10/2011 01:30 PM, David Wynter wrote:
>>> Hi,
>>>
>>> I have this
>>> <xsd:complexType name="TransformLog">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Table(name="LOGTRANS")</xsd:appinfo>
>>> <xsd:documentation>
>>> <xsd:p>The audit of processed records reported by data processor</xsd:p>
>>> </xsd:documentation>
>>> </xsd:annotation>
>>> <xsd:attribute name="id" type="xsd:int">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Id @GeneratedValue(strategy=IDENTITY)
>>> @Column(name="ID")</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:attribute>
>>> <xsd:attribute name="time" type="datamanagerlogs:javaDate">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Temporal(TIMESTAMP)
>>> @Column(name="TIME")</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:attribute>
>>> <xsd:attribute name="cat" type="xsd:string">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Column(name="CAT")</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:attribute>
>>> <xsd:attribute name="thread" type="xsd:string">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Column(name="THREAD")</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:attribute>
>>> <xsd:attribute name="msg" type="xsd:string">
>>> <xsd:annotation>
>>> <xsd:appinfo source="teneo.jpa">@Column(name="MSG")</xsd:appinfo>
>>> </xsd:annotation>
>>> </xsd:attribute>
>>> </xsd:complexType>
>>> <xsd:element name="transformLog" type="datamanagerlogs:TransformLog"/>
>>>
>>> I need the columns to be UPPERCASE so that I can view the log4j log
>>> file, which it seems requires UPPERCASE. But
>>> Hibernate ignores the case of these @Column annotations and creates
>>> them lowercase. How to get it to generate UPPERCASE
>>> table and column names?
>>>
>>> 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:{Teneo] XML Mapping error for generated Hibernate mapping?
Next Topic:Readable serialization format for EMF/GWT
Goto Forum:
  


Current Time: Sat Apr 27 03:44:21 GMT 2024

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

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

Back to the top