-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
 Post subject: The Question about mix case in the Oracle column name
PostPosted: Wed Dec 05, 2007 3:58 am 
Newbie

Joined: Wed Dec 05, 2007 3:30 am
Posts: 3
Hi,
Now in my developing, the oracle column names are the mix case, but Hiberate mapping all field-names to the upper. I get it that The field-names are not identifer when I run it.

And I found out, I quoted them by enclose them in double quotes marks, such as "Name", it can do exact match.

But how do it in the Hibernate?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 05, 2007 8:15 am 
Beginner
Beginner

Joined: Tue Nov 27, 2007 9:44 am
Posts: 46
Have you tried using something like this:
Code:
@Column(name="\"Column Name\"")


or similar in a Hibernate mapping file if you prefer that.

Regards,
Frank


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 05, 2007 8:44 pm 
Newbie

Joined: Wed Dec 05, 2007 3:30 am
Posts: 3
AlmGhandi wrote:
Have you tried using something like this:
Code:
@Column(name=""Column Name"")


or similar in a Hibernate mapping file if you prefer that.

Regards,
Frank


Thanks AlmGhandi.

I used your idea in the mapping files. It didn't work, cause by "Could not parse mapping document from resource com/domain/User.hbm.xml"

Do anybody have the other idea? Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 06, 2007 2:40 am 
Regular
Regular

Joined: Mon Mar 26, 2007 12:38 am
Posts: 119
Hi,
Use back-tits
<property name="description" column="`my description`"/>


---------------------------------------
Rate the reply if you find it helpful


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 06, 2007 2:48 am 
Newbie

Joined: Wed Dec 05, 2007 3:30 am
Posts: 3
pramodkp wrote:
Hi,
Use back-tits
<property name="description" column="`my description`"/>


---------------------------------------
Rate the reply if you find it helpful


Thank you very much, it works very good now.
:)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.