-->
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.  [ 2 posts ] 
Author Message
 Post subject: inner class for composite ID
PostPosted: Mon Oct 02, 2006 12:22 pm 
Regular
Regular

Joined: Mon Jun 13, 2005 12:38 pm
Posts: 56
Location: Austin, TX
The examples in the hibernate downloads use

Code:
public static class Id implements Serializable


as an inner class for a composite Id. I'm wondering why it's a static class.


thanks,
Mike

_________________
Michael Masters


Don't forget to rate.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 03, 2006 7:21 am 
Newbie

Joined: Thu Jul 06, 2006 8:38 am
Posts: 14
It makes sense to use a static class here doesn't it? Sometimes you want to be able to pass around just the id of an entity, instead of having to pass the whole instance.


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