-->
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: Way to specify column data type using EJB 3.0 annotations?
PostPosted: Fri Jan 21, 2005 1:37 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Hibernate version: hibernate-3.0beta1 with hibernate-annotations-3.0alpha1

I found that I was able to specify the data type for a column using the following EJB 3.0 annotation.

@Column(columnDefinition="TEXT")

This works great. However, I'm wondering if there is a way to specify the type in a DBMS-independent fashion.

For example, if I use the annotation above, it will work with MySQL and with Microsoft SQL server because they have a TEXT data type. However, in Derby, the equivalent data type appears to be "LONG VARCHAR."

Maybe I can use the Column length property and just set it to a large value (i.e. something greater than 255)...


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 11:51 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Post it as a new feature in JIRA please.

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 24, 2005 11:52 am 
Regular
Regular

Joined: Thu Dec 11, 2003 4:14 pm
Posts: 86
Location: Hibernate 3 + annotations, Oracle 9i, PostgreSQL 8.0, Java 1.5.0
please post the JIRA url here - this is something I would like to vote for!!


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.