|
|
|
|
Re: [Teneo] Ignores @Column case [message #756079 is a reply to message #756055] |
Thu, 10 November 2011 19:31 |
Martin Taal 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 |
Martin Taal 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
|
|
|
Powered by
FUDForum. Page generated in 0.03376 seconds