-->
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.  [ 4 posts ] 
Author Message
 Post subject: serialVersionUID warning for all POJOs
PostPosted: Thu Jul 21, 2005 9:00 am 
Beginner
Beginner

Joined: Fri Jul 08, 2005 8:09 am
Posts: 28
Hi,

Eclipse shows a warning for all generated POJOs:

Quote:
The serializable class ActivityClass does not declare a static final serialVersionUID field of type long


I strive for a hint and warning free code, so is there a way to get rid of this? Maybe the final static could be added to the templates or is there a better way which I can employ right now...


Hibernate version: 3.05, Plugin 3.0 alpha 4a

Name and version of the database you are using: Ora 9


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 4:13 pm 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
You can add serial ID (for example with eclipse quick fix) or disable warning in preferences

windows - preferences - java - compiler - Errors/warning - potential programmin problems

regards


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jul 21, 2005 5:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
or just provide a patch to the javaclass.vm so it can be generated

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 22, 2005 11:11 am 
Beginner
Beginner

Joined: Fri Jul 08, 2005 8:09 am
Posts: 28
Thanks. I did not realize that Eclipse 3 allows to turn off just this specific warning. Previously I used WebSphere 5, based on Eclipse 2, which did not allow this.


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