-->
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.  [ 3 posts ] 
Author Message
 Post subject: Type Mapping problem with Oracle
PostPosted: Thu Feb 15, 2007 7:07 am 
Newbie

Joined: Tue Feb 13, 2007 12:34 pm
Posts: 4
Hi All,
I am searching a way to map my String property to my CHAR(2) column in Oracle.

I am stuck with this, and it's urgent.
Thanks by advance for any hint.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 15, 2007 8:01 am 
Senior
Senior

Joined: Tue Jul 25, 2006 9:05 am
Posts: 163
Location: Stuttgart/Karlsruhe, Germany
annotate the getter or variable with

Code:
@Column(columnDefinition = "char(2)")


Cheers,

Andy

_________________
Rules are only there to be broken


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 15, 2007 9:28 am 
Newbie

Joined: Tue Feb 13, 2007 12:34 pm
Posts: 4
Thanks!

It works!

Have a nice day...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.