Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Eint or EIntegerObject? primitive types and some debug messages--should I worry?
Eint or EIntegerObject? primitive types and some debug messages--should I worry? [message #429822] Sun, 03 May 2009 18:00 Go to next message
No real name is currently offline No real nameFriend
Messages: 113
Registered: July 2009
Senior Member
I have a class that has a property with @Id set on it. The primary key
is an int both in the schema definition using the SQL Server 2005 admin
tool and generated via EMF using EInt as the type.

However, when I run it with teneo I get a debug message:


9700 [main] DEBUG
org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
- Expecting int as instance class but it is: java.lang.Integer


Is this a problem that I should work to solve? Changing the EInt to
EIntegerObject makes the message go away but I am not sure if there are
other side effects I should worry about.

This seems to be true for me whether or not it is a primary key. Is
there a setting somewhere that I should be setting to identify primitive
versus non-primitive/object types?
Re: Eint or EIntegerObject? primitive types and some debug messages--should I worry? [message #429823 is a reply to message #429822] Sun, 03 May 2009 18:40 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
Registered: July 2009
Senior Member
Certainly Integer object will take up a lot more space than will just a
primitive int...


aappddeevv wrote:
> I have a class that has a property with @Id set on it. The primary key
> is an int both in the schema definition using the SQL Server 2005
> admin tool and generated via EMF using EInt as the type.
>
> However, when I run it with teneo I get a debug message:
>
>
> 9700 [main] DEBUG
> org.eclipse.emf.teneo.hibernate.mapping.property.EAttributeP ropertyHandler
> - Expecting int as instance class but it is: java.lang.Integer
>
>
> Is this a problem that I should work to solve? Changing the EInt to
> EIntegerObject makes the message go away but I am not sure if there
> are other side effects I should worry about.
>
> This seems to be true for me whether or not it is a primary key. Is
> there a setting somewhere that I should be setting to identify
> primitive versus non-primitive/object types?


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Unable to configure javadoc location: package org.eclipse.emf.ecore.util
Next Topic:no EMF Model Creation Wizard
Goto Forum:
  


Current Time: Fri Apr 26 10:26:22 GMT 2024

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

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

Back to the top