-->
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.  [ 1 post ] 
Author Message
 Post subject: Meta attributes, and hashcode generation
PostPosted: Wed Apr 06, 2005 2:12 pm 
Regular
Regular

Joined: Fri Feb 13, 2004 10:02 pm
Posts: 90
Read the rules before posting!
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.0 rc1


Where did the documentation for the valid attribute types for the <meta tag go? I can't seem to find them anywhere.

Also, the generated hashcode source does not check for an object being null. for example, I only use the following code in my hashcode.

Code:
public int hashCode() {
         int result = 17;
         
         
         result = 37 * result + this.getId().hashCode();
       
         return result;
   }   


If this is an new instance, and id has not been set, when I add it to any java.util.Set I get a nullpionter exception. Is it possibly to just modify the velocity template to fix this?

Thanks,
Todd


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.