Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dali » SQL Server 200 tinyint mapping to Object
SQL Server 200 tinyint mapping to Object [message #434987] Sun, 14 September 2008 18:21 Go to next message
Krishna is currently offline KrishnaFriend
Messages: 2
Registered: July 2009
Junior Member
Am using Eclipse Ganymede (fairly new to using Eclipse).

While generating the entity for a table in MS SQL Server 2000 with a
column of type tinyint I notice that it is mapped to a java Object and not
to short as I had expected. On googling I found the following link that
mentions this to be a limitation that might be fixed in Ganymede (and the
defect has been marked Resolved).

http://dev.eclipse.org/newslists/news.eclipse.technology.dal i/msg00436.html

But I still see this behaviour. What could I be doing wrong?

Thanks
Re: SQL Server 200 tinyint mapping to Object [message #434990 is a reply to message #434987] Wed, 17 September 2008 14:58 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
This is odd. I checked the SQL Server 2000 definition file, and it looks
like this should indeed be working in Ganymede.

<predefinedDataTypeDefinitions xmi:id="SMALLINT_2"
keyConstraintSupported="true" identitySupported="true"
multipleColumnsSupported="true" primitiveType="SMALLINT" jdbcEnumType="5"
javaClassName="short">
<defaultValueTypes>NULL</defaultValueTypes>
<name>TINYINT</name>
</predefinedDataTypeDefinitions>


Dali should be taking the javaClassName value and using it for the
generated attribute type.

Can you post your Configuration Details? I can verify that all the right
parts are installed. If they are, than this would appear to be a bug.

Neil

Krishna wrote:

> Am using Eclipse Ganymede (fairly new to using Eclipse).

> While generating the entity for a table in MS SQL Server 2000 with a
> column of type tinyint I notice that it is mapped to a java Object and not
> to short as I had expected. On googling I found the following link that
> mentions this to be a limitation that might be fixed in Ganymede (and the
> defect has been marked Resolved).

> http://dev.eclipse.org/newslists/news.eclipse.technology.dal i/msg00436.html

> But I still see this behaviour. What could I be doing wrong?

> Thanks
Re: SQL Server 200 tinyint mapping to Object [message #611826 is a reply to message #434987] Wed, 17 September 2008 14:58 Go to previous message
Neil Hauge is currently offline Neil HaugeFriend
Messages: 475
Registered: July 2009
Senior Member
This is odd. I checked the SQL Server 2000 definition file, and it looks
like this should indeed be working in Ganymede.

<predefinedDataTypeDefinitions xmi:id="SMALLINT_2"
keyConstraintSupported="true" identitySupported="true"
multipleColumnsSupported="true" primitiveType="SMALLINT" jdbcEnumType="5"
javaClassName="short">
<defaultValueTypes>NULL</defaultValueTypes>
<name>TINYINT</name>
</predefinedDataTypeDefinitions>


Dali should be taking the javaClassName value and using it for the
generated attribute type.

Can you post your Configuration Details? I can verify that all the right
parts are installed. If they are, than this would appear to be a bug.

Neil

Krishna wrote:

> Am using Eclipse Ganymede (fairly new to using Eclipse).

> While generating the entity for a table in MS SQL Server 2000 with a
> column of type tinyint I notice that it is mapped to a java Object and not
> to short as I had expected. On googling I found the following link that
> mentions this to be a limitation that might be fixed in Ganymede (and the
> defect has been marked Resolved).

> http://dev.eclipse.org/newslists/news.eclipse.technology.dal i/msg00436.html

> But I still see this behaviour. What could I be doing wrong?

> Thanks
Previous Topic:@Entity gives mapped class not specified error with 2 persistence units
Next Topic:Dali 2.1M2 Declared
Goto Forum:
  


Current Time: Fri Apr 19 20:05:43 GMT 2024

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

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

Back to the top