-->
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: Why is ClassMapping.components static?
PostPosted: Wed Mar 03, 2004 10:57 pm 
Newbie

Joined: Tue Oct 21, 2003 2:12 am
Posts: 7
I'm trying to understand how hbm2java works (So I can create some renderers of my own) and have become confused. Can somebody explain to me why ClassMapping.components is a static field. As nearly as I can tell, it seems to be handled like an instance variable, except that the field and its getter are static.

Thanks,

JWS


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 04, 2004 3:41 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
at the moment that is how hbm2java collect all the components that is referred by the classes....it could probably easily be changed to an instance variable and collected per class instead .... feel free to submit a patch for it if it bothers ya' ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject: Submitting Patches
PostPosted: Thu Mar 04, 2004 8:39 am 
Newbie

Joined: Tue Oct 21, 2003 2:12 am
Posts: 7
I'm going to try to get more of a clue about the system first. But for the future, is there a guide on code conventions, who is working on what, etc. for people who are interested in working on hbm2java, or is the practice just to submit code and sort it out later?

Thanks,

JWS


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 04, 2004 1:00 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
yup ;)

for the hbm2java stuff i'm the main contributor and patcher if you wanna know for that part...

code guidelines is best read by reading the code and use the checkstyle guidelines that is in cvs...

_________________
Max
Don't forget to rate


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.