Re: Class generation warnings
Re: Class generation warnings
- Subject: Re: Class generation warnings
- From: David LeBer <email@hidden>
- Date: Thu, 13 Mar 2008 09:34:26 -0400
On 12-Mar-08, at 11:56 PM, Eleni Manou wrote:
Hi all,
when I generate classes I get the following warnings in each class
(en example of my class in java is shown below
package com.mysql.eo;
import org.apache.log4j.Logger;
public class Accounts extends _Accounts {
private static Logger log = Logger.getLogger(Accounts.class);
}
Warnings are:
As the label implies, these are just warnings. They will not affect
the functioning of your app.
The serializable class Accounts does not declare a static final
serialVersion UID field of type long
I have this one disabled in Eclipse -> Preferences -> Java -> Compiler
-> Errors/Warnings -> Potential programming problems -> Serializable
class without serialVersionUID: Ignore
Or click on the little lightbulb icon in the gutter and select: Add
default serial version ID
and
The field Accounts.log is never read locally
Again, just a warning.
If you are using Java 1.5 you can add @SuppressWarnings("unused") just
above it in your code.
Then when I continue and run my project in a very simple component
where I try to insert a record in database (mysql), while the
primary key is inserted normally (automatically incremented) for
each record all other fields appear null.
Can anyone explain this to me? Sorry, I am a newcomer in Eclipse/
WOLips and EOModeler.
Sound's like you have a bug.
Without seeing code I have no idea what it is.
;david
--
David LeBer
Codeferous Software
'co-def-er-ous' adj. Literally 'code-bearing'
site: http://codeferous.com
blog: http://davidleber.net
profile: http://www.linkedin.com/in/davidleber
--
Toronto Area Cocoa / WebObjects developers group:
http://tacow.org
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden